<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>actberw (actberw)</title>
    <link>https://ruby-china.org/actberw</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>项目目录下的.rvmrc 文件</title>
      <description>&lt;p&gt;如果在项目目录下有.rvmrc 文件，内容为：rvm use ruby-1.9.3-p194@gemsetname
在 cd 到项目目录时自动执行相关的 hook，请问下这个是怎么实现的？&lt;/p&gt;</description>
      <author>actberw</author>
      <pubDate>Tue, 11 Dec 2012 10:54:34 +0800</pubDate>
      <link>https://ruby-china.org/topics/7462</link>
      <guid>https://ruby-china.org/topics/7462</guid>
    </item>
    <item>
      <title>安装 nokogiri Failed to build gem native extension</title>
      <description>&lt;p&gt;今天在安装 redmine 和插件 backlogs，提示：&lt;/p&gt;

&lt;p&gt;ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;/home/xxxx/.rvm/rubies/ruby-1.9.3-head/bin/ruby extconf.rb
checking for libxml/parser.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details. &lt;/p&gt;

&lt;p&gt;也安装了 libxslt-dev libxml2-dev  &lt;/p&gt;

&lt;p&gt;shell &amp;gt; find /usr/include/ -name libxml 
/usr/include//libxml2/libxml&lt;/p&gt;

&lt;p&gt;想按照 &lt;a href="http://kenjiru.ro/blog/2012/02/install-the-backlogs-plugin-for-redmine-on-hostgator" rel="nofollow" target="_blank"&gt;http://kenjiru.ro/blog/2012/02/install-the-backlogs-plugin-for-redmine-on-hostgator&lt;/a&gt; 来直接 compile，指定位置：
shell &amp;gt; gem compile nokogiri-1.5.5.gem  --with-xml2-include=/usr/include/libxml2&lt;/p&gt;

&lt;p&gt;却提示 invalid option: --with-xml2-include=/usr/include/libxml2&lt;/p&gt;

&lt;p&gt;用了 rvm，ruby 版本是 ruby-1.9.3-head，系统是：
Distributor ID: Debian
Description:    Debian GNU/Linux 6.0.5 (squeeze)
Release:    6.0.5
Codename:   squeeze&lt;/p&gt;

&lt;p&gt;对 ruby 不熟，求帮忙，万分感谢！&lt;/p&gt;</description>
      <author>actberw</author>
      <pubDate>Fri, 19 Oct 2012 13:41:40 +0800</pubDate>
      <link>https://ruby-china.org/topics/6178</link>
      <guid>https://ruby-china.org/topics/6178</guid>
    </item>
  </channel>
</rss>
