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