发生jekyll错误的mac bundle install

时间:2014-07-25 08:27:47

标签: git gem jekyll

当我在mac上执行bundle install时发生此事件

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/Cellar/ruby/2.1.2_2/bin/ruby -r ./siteconf20140725-85993-z0wc6r.rb extconf.rb 
Building nokogiri using packaged libraries.
-----
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.

提供配置选项:

--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=/usr/local/Cellar/ruby/2.1.2_2/bin/ruby
--help
--clean
--use-system-libraries
--enable-static
--disable-static
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--enable-cross-build
--disable-cross-build

extconf失败,退出代码1

Gem文件将保留在/Users/Dong/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.3.1中进行检查。 结果记录到/Users/Dong/.rvm/gems/ruby-2.1.2/extensions/x86_64-darwin-13/2.1.0/nokogiri-1.6.3.1/gem_make.out 安装nokogiri(1.6.3.1)时发生错误,而Bundler不能 继续。 在捆绑之前确保gem install nokogiri -v '1.6.3.1'成功。

然后我也错误地去了http://nokogiri.org/tutorials/installing_nokogiri.html这个页面。能为这个做些什么。

1 个答案:

答案 0 :(得分:0)

-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for      help with installing dependencies.
-----

只需重新安装libiconv即可。它适用于我的机器。