Tag: libiconv

使用rspec时出错,安装Homebrew和卸载MacPorts后缺less库

我可能已经超出了我的知识范围。 我安装了自制软件 ,在它继续给我警告安装了MacPorts之后,我卸载了它。 但是现在我的rspectesting不运行。 这些是我得到的错误: /Users/mark/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri.rb:13:in `require': dlopen(/Users/mark/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /opt/local/lib/libiconv.2.dylib (LoadError) Referenced from: /Users/mark/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle Reason: Incompatible library version: nokogiri.bundle requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0 – /Users/mark/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-1.4.4/lib/nokogiri/nokogiri.bundle ….. ….. 我已经通过Homebrew安装了libiconv,但是没有解决它。 它抱怨libiconv版本号。 这是问题吗? 这里发生了什么,我需要做什么?

为什么在Mac OS上安装Nokogiri失败,libiconv丢失?

我一直试图在Mac OS 10.9.3上安装Nokogiri,无论我尝试什么,安装失败最终以下错误消息: $ sudo gem install nokogiri — –with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 –with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib –with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 –with-iconv-include=/usr/local/Cellar/libiconv/1.14/include –with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib Building native extensions with: '–with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 –with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib –with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 –with-iconv-include=/usr/local/Cellar/libiconv/1.14/include –with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib' This could take a while… Building nokogiri using packaged libraries. ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb –with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 –with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib –with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 –with-iconv-include=/usr/local/Cellar/libiconv/1.14/include –with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib Building nokogiri using packaged […]