<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>grj1046 (grj)</title>
    <link>https://ruby-china.org/grj1046</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>关于在 CentOS 上安装 nokigiri 的问题 需要各位大大的帮忙</title>
      <description>&lt;p&gt;在 ubuntu 上安装 nokigiri 很顺利，但是在 CentOS 上安装时各种问题。
使用&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gem &lt;span class="nb"&gt;install &lt;/span&gt;nokogiri
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;安装 nokigiri 的时候回去自动下载 libxml2-2.8.0，而且是从源码安装的，但是报错，
我使用 yum 命令把 libxml2 libxml2-devel libxslt libxslt-devel 安装上后再安装 nokogiri，还是会自动去下载 libxml2-2.8.0 这个包，然后去编译执行，继续报错。
所以我自己把 libxml2-2.8 安装上去了（报错原因是 zlib 版本的问题），终于把 libxml2 给安装上去了，安装时指定的 prefix 是/usr/local/libxml2，所以我使用命令 &lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# gem install nokogiri -- --with-xml2-include=/usr/local/libxml2/include/libxml2/&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;继续安装（参考的是这个：&lt;a href="http://wuhuizhong.iteye.com/blog/1239790" rel="nofollow" target="_blank"&gt;http://wuhuizhong.iteye.com/blog/1239790&lt;/a&gt;）
但是他还是会继续下载 libxml2-2.8.0 这个包，表示很无奈了，求各位谁遇到过这种情况帮下忙，先谢谢各位了。&lt;/p&gt;

&lt;p&gt;附上报错信息：&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# gem install nokogiri -- --with-xml2-include=/usr/local/libxml2/include/libxml2/&lt;/span&gt;
Building native extensions with: &lt;span class="s1"&gt;'--with-xml2-include=/usr/local/libxml2/include/libxml2/'&lt;/span&gt;
This could take a &lt;span class="k"&gt;while&lt;/span&gt;...
ERROR:  Error installing nokogiri:
        ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb &lt;span class="nt"&gt;--with-xml2-include&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;/usr/local/libxml2/include/libxml2/
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-redhat-linux/ports/libxml2/2.8.0... OK
Running &lt;span class="s1"&gt;'configure'&lt;/span&gt; &lt;span class="k"&gt;for &lt;/span&gt;libxml2 2.8.0... OK
Running &lt;span class="s1"&gt;'compile'&lt;/span&gt; &lt;span class="k"&gt;for &lt;/span&gt;libxml2 2.8.0... ERROR, review &lt;span class="s1"&gt;'tmp/x86_64-redhat-linux/ports/libxml2/2.8.0/compile.log'&lt;/span&gt; to see what happened.
&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/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/mini_portile-0.5.2/lib/mini_portile.rb:265:in &lt;span class="sb"&gt;`&lt;/span&gt;block &lt;span class="k"&gt;in &lt;/span&gt;execute&lt;span class="s1"&gt;': Failed to complete compile task (RuntimeError)
        from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in `chdir'&lt;/span&gt;
        from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mini_portile-0.5.2/lib/mini_portile.rb:257:in &lt;span class="sb"&gt;`&lt;/span&gt;execute&lt;span class="s1"&gt;'
        from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mini_portile-0.5.2/lib/mini_portile.rb:69:in `compile'&lt;/span&gt;
        from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/mini_portile-0.5.2/lib/mini_portile.rb:109:in &lt;span class="sb"&gt;`&lt;/span&gt;cook&lt;span class="s1"&gt;'
        from extconf.rb:101:in `block in &amp;lt;main&amp;gt;'&lt;/span&gt;
        from extconf.rb:119:in &lt;span class="sb"&gt;`&lt;/span&gt;call&lt;span class="s1"&gt;'
        from extconf.rb:119:in `block in &amp;lt;main&amp;gt;'&lt;/span&gt;
        from extconf.rb:109:in &lt;span class="sb"&gt;`&lt;/span&gt;tap&lt;span class="s1"&gt;'
        from extconf.rb:109:in `&amp;lt;main&amp;gt;'&lt;/span&gt;


Gem files will remain installed &lt;span class="k"&gt;in&lt;/span&gt; /usr/local/rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.1 &lt;span class="k"&gt;for &lt;/span&gt;inspection.
Results logged to /usr/local/rvm/gems/ruby-2.0.0-p247/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>grj1046</author>
      <pubDate>Tue, 31 Dec 2013 19:54:56 +0800</pubDate>
      <link>https://ruby-china.org/topics/16545</link>
      <guid>https://ruby-china.org/topics/16545</guid>
    </item>
    <item>
      <title>[北京][求职] Ruby 开发工程师</title>
      <description>&lt;p&gt;本人原来在上海做了两年的.NET 开发，由于个人原因来到北京，因为对 Ruby 感兴趣，去年学过一段时间 Ruby 和 RoR，技术水平只能算是新手，因为我学的在.NET 中比较冷门（Silverlight），工作不是太好找，因此有考虑转 Ruby 开发，不知在北京用 RoR 的公司是否会考虑一下我？个人比较喜欢互联网，喜欢研究各种新的技术，喜欢参加各种活动。去年在上海的第四届 Ruby 大会有过去凑热闹。&lt;/p&gt;</description>
      <author>grj1046</author>
      <pubDate>Mon, 03 Jun 2013 22:50:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/11465</link>
      <guid>https://ruby-china.org/topics/11465</guid>
    </item>
  </channel>
</rss>
