我似乎無法在我的Mac OS X 10.8系統上安裝Nokogiri。我知道有一個解決方法,該解決方案和解決辦法是:Nokogiri不安裝?
NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install
但因爲每次我做一個包時,它失敗我寧願解決這個問題。這裏的問題是:
$ gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/buf/.rvm/rubies/ruby-2.0.0-p195/bin/ruby extconf.rb
Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin12.5.0/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... ERROR, review 'tmp/x86_64-apple-darwin12.5.0/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.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/buf/.rvm/rubies/ruby-2.0.0-p195/bin/ruby
/Users/buf/.rvm/gems/[email protected]/gems/mini_portile-0.5.1/lib/mini_portile.rb:251:in `block in execute': Failed to complete configure task (RuntimeError)
from /Users/buf/.rvm/gems/[email protected]/gems/mini_portile-0.5.1/lib/mini_portile.rb:243:in `chdir'
from /Users/buf/.rvm/gems/[email protected]/gems/mini_portile-0.5.1/lib/mini_portile.rb:243:in `execute'
from /Users/buf/.rvm/gems/[email protected]/gems/mini_portile-0.5.1/lib/mini_portile.rb:57:in `configure'
from /Users/buf/.rvm/gems/[email protected]/gems/mini_portile-0.5.1/lib/mini_portile.rb:100:in `cook'
from extconf.rb:101:in `block in <main>'
from extconf.rb:119:in `call'
from extconf.rb:119:in `block in <main>'
from extconf.rb:109:in `tap'
from extconf.rb:109:in `<main>'
Gem files will remain installed in /Users/buf/.rvm/gems/[email protected]/gems/nokogiri-1.6.0 for inspection.
Results logged to /Users/buf/.rvm/gems/[email protected]/gems/nokogiri-1.6.0/ext/nokogiri/gem_make.out
當我看日誌文件:
configure: error: cannot find sources (entities.c) in /Volumes/Terra/Code/vimsource/vim/src or ..
任何人都知道這是怎麼回事?
你知道,有些聰明人發明了錯誤信息,我們必須學會尊重他們,並開始閱讀 – chirag7jain
這是錯誤日誌:配置:錯誤:無法找到/卷/泰/代碼/ vimsource源(entities.c)/vim/src或.. – wiznaibus
[在mac(libxml2)上安裝nokogiri 1.6.0時出錯的可能的重複](http://stackoverflow.com/questions/17863477/error-installing-nokogiri-1-6-0-on -mac-libxml2) – davidcondrey