Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails gem安装不使用自制软件_Ruby On Rails_Ruby On Rails 3_Nokogiri_Bundle_Homebrew - Fatal编程技术网

Ruby on rails gem安装不使用自制软件

Ruby on rails gem安装不使用自制软件,ruby-on-rails,ruby-on-rails-3,nokogiri,bundle,homebrew,Ruby On Rails,Ruby On Rails 3,Nokogiri,Bundle,Homebrew,好的,我最近刚安装了自制软件,一切都很好,但我在安装nokogiri时遇到了问题,这是我的问题 $ bundle install Fetching source index for https://rubygems.org/ Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.1.0) Using activesupport (3.2.1) Using builder (3.0.0) Using activemodel

好的,我最近刚安装了自制软件,一切都很好,但我在安装nokogiri时遇到了问题,这是我的问题

$ bundle install
Fetching source index for https://rubygems.org/
Using rake (0.9.2.2) 
Using i18n (0.6.0) 
Using multi_json (1.1.0) 
Using activesupport (3.2.1) 
Using builder (3.0.0) 
Using activemodel (3.2.1) 
Using erubis (2.7.0) 
Using journey (1.0.2) 
Using rack (1.4.1) 
Using rack-cache (1.1) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.1.2) 
Using actionpack (3.2.1) 
Using mime-types (1.17.2) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.4.1) 
Using actionmailer (3.2.1) 
Using arel (3.0.1) 
Using tzinfo (0.3.31) 
Using activerecord (3.2.1) 
Using activeresource (3.2.1) 
Using annotate (2.4.1.beta1) 
Using bcrypt-ruby (3.0.1) 
Using bundler (1.0.22) 
Installing nokogiri (1.5.0) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/matt_elhotiby/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb 
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... no
checking for iconv_open() in -liconv... no
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
所以我使用这个命令来安装它

gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.7.8/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.26 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib
Building native extensions.  This could take a while...
Successfully installed nokogiri-1.5.0
1 gem installed
Installing ri documentation for nokogiri-1.5.0...
Installing RDoc documentation for nokogiri-1.5.0...
然后我做了一次精神检查,得到了这个

gem list nokogiri*** LOCAL GEMS ***
nokogiri (1.5.0)
但由于某些原因,捆绑包安装无法正常工作……,y环境如下

MacOSX狮子 RVM ruby-1.9.2-p290

我能为任何人提供的任何其他帮助都会很好

brew install libiconv
[master (Time to Commit)]$ brew link libiconv
Linking /usr/local/Cellar/libiconv/1.14... 16 symlinks created
解决者

brew install libiconv
[master (Time to Commit)]$ brew link libiconv
Linking /usr/local/Cellar/libiconv/1.14... 16 symlinks created

自制删除了
libiconv
formula自制删除了
libiconv
formula