【问题标题】:mac bundle install for jekyll error occursmac bundle install for jekyll 发生错误
【发布时间】:2014-07-25 08:27:47
【问题描述】:

当我在 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这个页面也有错误。可以为这个做什么。

【问题讨论】:

    标签: git gem jekyll


    【解决方案1】:
    -----
    libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for      help with installing dependencies.
    -----
    

    只需重新安装libiconv。它可以在我的机器上运行。

    【讨论】:

    • 我以前做过这个,但不起作用。谢谢!反正
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-07-10
    • 1970-01-01
    • 2015-11-27
    • 2013-01-05
    • 1970-01-01
    • 2016-06-01
    • 2018-07-11
    相关资源
    最近更新 更多