安装问题:Mac OSx Mountain Lion上的Nokogiri

时间:2013-09-16 19:40:33

标签: ruby macos rubygems nokogiri

出于某种原因,我不能在我的MacBook上安装Nokogiri旅行。

这是gem install nokogiri的短输出:

Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin12/ports/libxml2/2.8.0... OK
Running 'configure' for libxml2 2.8.0... OK
Running 'compile' for libxml2 2.8.0... OK
Running 'install' for libxml2 2.8.0... OK
Activating libxml2 2.8.0 (from /Users/jseidel/.rvm/gems/ruby-1.9.3-p327@rails3213/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin12/libxml2/2.8.0)...
Extracting libxslt-1.1.26.tar.gz into tmp/x86_64-apple-darwin12/ports/libxslt/1.1.26... OK
Running 'configure' for libxslt 1.1.26... OK
Running 'compile' for libxslt 1.1.26... OK
Running 'install' for libxslt 1.1.26... OK
Activating libxslt 1.1.26 (from /Users/jseidel/.rvm/gems/ruby-1.9.3-p327@rails3213/gems/nokogiri-1.6.0/ports/x86_64-apple-darwin12/libxslt/1.1.26)...
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc() in -lxml2... no
-----
libxml2 is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

但是,我使用的是MacPorts,它说它已经安装了:

port installed | grep lib
libxml @1.8.17_0 (active)
libxml2 @2.9.1_0 (active)

是否因为安装了libxml和libxml2而感到困惑? (可能不是。)或者还有其他事情发生了吗?

我已按照Nokigiri安装的安装说明进行操作,但没有帮助。

最后,我卸载了端口libxml和libxml2,现在它尝试使用libiconv失败了,似乎已经超越了之前的XML问题。

1 个答案:

答案 0 :(得分:0)

试试吧

sudo port upgrade outdated