2
试图安装一个宝石,但它无法找到标题,尽管他们指定:引入nokogiri编译错误 - 找不到库/头
sudo gem install nokogiri -- --with-xml2-lib=/usr/local/lib --with-xml2-include=/usr/local/include/libxml2 --with-xml2-include=/usr/local/include/libxml2 --with-xslt-include=/usr/local/include/libxslt
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb --with-xml2-lib=/usr/local/lib --with-xml2-include=/usr/local/include/libxml2 --with-xml2-include=/usr/local/include/libxml2 --with-xslt-include=/usr/local/include/libxslt
checking for #include <libxml/parser.h>
... no
-----
libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
的/usr/local/include/libxml2/libxml/parser.h
文件不存在,所以我不不明白为什么这不起作用。
编辑:我在CentOS 5.4
当您没有所有这些选项安装时会发生什么? – 2010-08-13 22:53:36
实际上同样的事情发生。我从源代码btw安装,而且我确实在最后安装了'sudo make install',并在相应的目录中存在已编译的二进制文件。 – ehsanul 2010-08-13 23:35:57