Ruby 安装nokogiri 1.6.0时出错:未能生成gem本机扩展?
在我的Gemfile(它依赖于Nokogiri)中使用seleniumwebdriver~>2.35.1运行Ruby 安装nokogiri 1.6.0时出错:未能生成gem本机扩展?,ruby,gem,selenium-webdriver,bundler,Ruby,Gem,Selenium Webdriver,Bundler,在我的Gemfile(它依赖于Nokogiri)中使用seleniumwebdriver~>2.35.1运行bundle安装后,我遇到以下错误 我试着用命令行指定Nokogiri需要的两个本机库,但这似乎没有帮助 我也找不到“mkmf.log”文件或“configure.log”文件 我尝试并安装了Nokogiri 1.5.10。可能的副本完全不可能在不了解环境细节的情况下回答。Nokogiri需要本地构建的特定库,并且它们必须位于特定的位置。libxml2是罪魁祸首之一。 Building n
bundle安装后,我遇到以下错误
我试着用命令行指定Nokogiri需要的两个本机库,但这似乎没有帮助
我也找不到“mkmf.log”文件或“configure.log”文件
我尝试并安装了Nokogiri 1.5.10。可能的副本完全不可能在不了解环境细节的情况下回答。Nokogiri需要本地构建的特定库,并且它们必须位于特定的位置。libxml2是罪魁祸首之一。
Building native extensions with: '--with-xml2-lib=/usr/lib64 --with-xml2-include=/usr/include/libxml2 --with-xslt-lib=/usr/lib64 --with-xslt-include=/usr/include/libxslt'
This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/local/mxp25/.rbenv/versions/1.9.3-p327/bin/ruby extconf.rb --with-xml2-lib=/usr/lib64 --with-xml2-include=/usr/include/libxml2 --with-xslt-lib=/usr/lib64 --with-xslt-include=/usr/include/libxslt
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-redhat-linux/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-redhat-linux/ports/libxml2/2.8.0/configure.log' to see what happened.
*** 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. You may need configuration options.