今天在安装 redmine 和插件 backlogs,提示:
ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension.
/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.
也安装了 libxslt-dev libxml2-dev
shell > find /usr/include/ -name libxml /usr/include//libxml2/libxml
想按照 http://kenjiru.ro/blog/2012/02/install-the-backlogs-plugin-for-redmine-on-hostgator 来直接 compile,指定位置: shell > gem compile nokogiri-1.5.5.gem --with-xml2-include=/usr/include/libxml2
却提示 invalid option: --with-xml2-include=/usr/include/libxml2
用了 rvm,ruby 版本是 ruby-1.9.3-head,系统是: Distributor ID: Debian Description: Debian GNU/Linux 6.0.5 (squeeze) Release: 6.0.5 Codename: squeeze
对 ruby 不熟,求帮忙,万分感谢!