遇到错误安装nokogiri

时间:2014-11-28 04:33:28

标签: ruby nokogiri

我正在尝试安装和使用Nokogiri来测试一些东西。我没有使用rails,只是简单的ruby,我尝试在终端中运行gem install nokogiri。

我得到的错误是

libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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.


Gem files will remain installed in /Users/test/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/nokogiri-1.6.3.1 for inspection.
Results logged to /Users/Wilson/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/nokogiri-1.6.3.1/gem_make.out

是因为rbenv吗?有人有解决方案吗?

0 个答案:

没有答案