尝试添加条带gem时出错

时间:2015-10-05 18:20:56

标签: ruby-on-rails ruby gem rubygems stripe-payments

我正在尝试安装条纹gem并且我收到此错误

  

Gem :: Ext :: BuildError:错误:无法构建gem原生扩展。

     

/Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -r ./siteconf20151005-1267-af6sn6.rb extconf.rb检查main()in   -lstdc ++ ... * extconf.rb失败* 由于某些原因无法创建Makefile,可能缺少必要的库和/或标头。   检查mkmf.log文件以获取更多详细信息。您可能需要配置   选项。

     

提供配置选项: - with-opt-dir --without-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 = /用户/ Fysh / .rvm /红宝石/红宝石2.0.0-P643 /斌/红宝石     --with-static-libstdc ++ --without-static-libstdc ++ --with-stdc ++ lib     --without-STDC ++ LIB   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:434:in   try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:519:in try_link0'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:534:in   try_link' from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:714:in try_func'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:944:in   block in have_library' from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:889:in 阻止了check_for'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:340:in   block (2 levels) in postpone' from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:310:in 开放'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:340:in   block in postpone' from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:310:in 开放'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:336:in   postpone' from /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:888:in checking_for'从   /Users/Fysh/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/mkmf.rb:939:in   have_library' from extconf.rb:6:in'

     

extconf失败,退出代码1

     

Gem文件将保持安装状态   /Users/Fysh/.rvm/gems/ruby-2.0.0-p643/gems/unf_ext-0.0.7.1 for   检查。记录结果   /Users/Fysh/.rvm/gems/ruby-2.0.0-p643/extensions/x86_64-darwin-14/2.0.0-static/unf_ext-0.0.7.1/gem_make.out   安装unf_ext(0.0.7.1)和Bundler时发生错误   无法继续。确保gem install unf_ext -v '0.0.7.1'   在捆绑之前成功。

1 个答案:

答案 0 :(得分:0)

我更新后,解决了xcode更新。