<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>yugo (Yugo)</title>
    <link>https://ruby-china.org/yugo</link>
    <description>我时常感觉死亡在盯着我</description>
    <language>en-us</language>
    <item>
      <title>假如我出一个 Elixir Phoenix 的实践，会有人购买吗？</title>
      <description>&lt;p&gt;我想看下人数，感觉好小众，我写了一些 electron 的教程都很少问津，哎。&lt;/p&gt;</description>
      <author>yugo</author>
      <pubDate>Mon, 30 Jul 2018 13:32:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/37251</link>
      <guid>https://ruby-china.org/topics/37251</guid>
    </item>
    <item>
      <title>Docker Ubuntu 安装 Jekyll 报错</title>
      <description>&lt;p&gt;Ruby 没怎么用过，语法都不太懂，能 Google 也 Google 了，能想到的都尝试了，折腾很久无果。&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt-get &lt;span class="nt"&gt;-yqq&lt;/span&gt; &lt;span class="nb"&gt;install &lt;/span&gt;ruby2.0 ruby2.0-dev make nodejs
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;这是 1.x 版本&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;root@7e86a6002ca5:/# gem &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--no-rdoc&lt;/span&gt; &lt;span class="nt"&gt;--no-ri&lt;/span&gt; jekyll
Fetching: liquid-3.0.6.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: kramdown-1.9.0.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: mercenary-0.3.5.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: safe_yaml-1.0.4.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: colorator-0.1.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: rouge-1.10.1.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: sass-3.4.21.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: jekyll-sass-converter-1.4.0.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: rb-fsevent-0.9.7.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Fetching: ffi-1.9.10.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Building native extensions.  This could take a &lt;span class="k"&gt;while&lt;/span&gt;...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in &lt;span class="sb"&gt;`&lt;/span&gt;require&lt;span class="s1"&gt;': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'&lt;/span&gt;
    from extconf.rb:4:in &lt;span class="sb"&gt;`&lt;/span&gt;&amp;lt;main&amp;gt;&lt;span class="s1"&gt;'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.9.10 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/ffi-1.9.10/ext/ffi_c/gem_make.out
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;这是 2.0 版本&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;root@7e86a6002ca5:/# gem2.0 &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--no-rdoc&lt;/span&gt; &lt;span class="nt"&gt;--no-ri&lt;/span&gt; jekyll
......
Fetching: ffi-1.9.10.gem &lt;span class="o"&gt;(&lt;/span&gt;100%&lt;span class="o"&gt;)&lt;/span&gt;
Building native extensions.  This could take a &lt;span class="k"&gt;while&lt;/span&gt;...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby2.0 extconf.rb
checking &lt;span class="k"&gt;for &lt;/span&gt;ffi.h... &lt;span class="k"&gt;***&lt;/span&gt; extconf.rb failed &lt;span class="k"&gt;***&lt;/span&gt;
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file &lt;span class="k"&gt;for &lt;/span&gt;more details.  You may
need configuration options.

Provided configuration options:
    &lt;span class="nt"&gt;--with-opt-dir&lt;/span&gt;
    &lt;span class="nt"&gt;--without-opt-dir&lt;/span&gt;
    &lt;span class="nt"&gt;--with-opt-include&lt;/span&gt;
    &lt;span class="nt"&gt;--without-opt-include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;opt&lt;/span&gt;&lt;span class="p"&gt;-dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/include
    &lt;span class="nt"&gt;--with-opt-lib&lt;/span&gt;
    &lt;span class="nt"&gt;--without-opt-lib&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;opt&lt;/span&gt;&lt;span class="p"&gt;-dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/lib
    &lt;span class="nt"&gt;--with-make-prog&lt;/span&gt;
    &lt;span class="nt"&gt;--without-make-prog&lt;/span&gt;
    &lt;span class="nt"&gt;--srcdir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt;
    &lt;span class="nt"&gt;--curdir&lt;/span&gt;
    &lt;span class="nt"&gt;--ruby&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/bin/ruby2.0
    &lt;span class="nt"&gt;--with-ffi_c-dir&lt;/span&gt;
    &lt;span class="nt"&gt;--without-ffi_c-dir&lt;/span&gt;
    &lt;span class="nt"&gt;--with-ffi_c-include&lt;/span&gt;
    &lt;span class="nt"&gt;--without-ffi_c-include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ffi_c&lt;/span&gt;&lt;span class="p"&gt;-dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/include
    &lt;span class="nt"&gt;--with-ffi_c-lib&lt;/span&gt;
    &lt;span class="nt"&gt;--without-ffi_c-lib&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ffi_c&lt;/span&gt;&lt;span class="p"&gt;-dir&lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;/
    &lt;span class="nt"&gt;--with-libffi-config&lt;/span&gt;
    &lt;span class="nt"&gt;--without-libffi-config&lt;/span&gt;
    &lt;span class="nt"&gt;--with-pkg-config&lt;/span&gt;
    &lt;span class="nt"&gt;--without-pkg-config&lt;/span&gt;
/usr/lib/ruby/2.0.0/mkmf.rb:434:in &lt;span class="sb"&gt;`&lt;/span&gt;try_do&lt;span class="s1"&gt;': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
    from /usr/lib/ruby/2.0.0/mkmf.rb:565:in `try_cpp'&lt;/span&gt;
    from /usr/lib/ruby/2.0.0/mkmf.rb:1044:in &lt;span class="sb"&gt;`&lt;/span&gt;block &lt;span class="k"&gt;in &lt;/span&gt;have_header&lt;span class="s1"&gt;'
    from /usr/lib/ruby/2.0.0/mkmf.rb:895:in `block in checking_for'&lt;/span&gt;
    from /usr/lib/ruby/2.0.0/mkmf.rb:340:in &lt;span class="sb"&gt;`&lt;/span&gt;block &lt;span class="o"&gt;(&lt;/span&gt;2 levels&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="k"&gt;in &lt;/span&gt;postpone&lt;span class="s1"&gt;'
    from /usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'&lt;/span&gt;
    from /usr/lib/ruby/2.0.0/mkmf.rb:340:in &lt;span class="sb"&gt;`&lt;/span&gt;block &lt;span class="k"&gt;in &lt;/span&gt;postpone&lt;span class="s1"&gt;'
    from /usr/lib/ruby/2.0.0/mkmf.rb:310:in `open'&lt;/span&gt;
    from /usr/lib/ruby/2.0.0/mkmf.rb:336:in &lt;span class="sb"&gt;`&lt;/span&gt;postpone&lt;span class="s1"&gt;'
    from /usr/lib/ruby/2.0.0/mkmf.rb:894:in `checking_for'&lt;/span&gt;
    from /usr/lib/ruby/2.0.0/mkmf.rb:1043:in &lt;span class="sb"&gt;`&lt;/span&gt;have_header&lt;span class="s1"&gt;'
    from extconf.rb:16:in `&amp;lt;main&amp;gt;'&lt;/span&gt;


Gem files will remain installed &lt;span class="k"&gt;in&lt;/span&gt; /var/lib/gems/2.0.0/gems/ffi-1.9.10 &lt;span class="k"&gt;for &lt;/span&gt;inspection.
Results logged to /var/lib/gems/2.0.0/gems/ffi-1.9.10/ext/ffi_c/gem_make.out
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>yugo</author>
      <pubDate>Sun, 06 Mar 2016 11:46:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/29226</link>
      <guid>https://ruby-china.org/topics/29226</guid>
    </item>
  </channel>
</rss>
