【问题标题】:ERROR: Error installing bond:错误:安装债券时出错:
【发布时间】:2014-11-02 10:49:45
【问题描述】:

我在我的 Gemfile 中添加了一些 gem,特别是 activerecord、sinatra-activerecord、sqlite3、shotgun 和 tux。当我运行“捆绑安装”时,我收到了这个奇怪的错误,似乎没有任何关于它的 Google 信息。这是我得到的错误:

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

/usr/local/rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb 

make "DESTDIR=" clean


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.



make "DESTDIR="


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.



make failed, exit code 69

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.1/gems/bond-0.5.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/bond-0.5.1/gem_make.out
An error occurred while installing bond (0.5.1), and Bundler cannot continue.
Make sure that `gem install bond -v '0.5.1'` succeeds before bundling.

然后我运行建议

gem install bond -v '0.5.1'

然后得到这个:

Building native extensions.  This could take a while...
ERROR:  Error installing bond:
ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-2.1.1/bin/ruby extconf.rb

make "DESTDIR=" clean


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.



make "DESTDIR="


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.



make failed, exit code 69

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.1.1/gems/bond-0.5.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.1.1/extensions/x86_64-darwin-12/2.1.0-static/bond-0.5.1/gem_make.out

【问题讨论】:

    标签: ruby activerecord sinatra


    【解决方案1】:

    也许这个问题与最近的 XCode 更新有关。在 XCode 更新后,您需要执行以下步骤:

    1. 打开 Xcode 并接受许可协议
    2. 重新安装命令行工具。

    第二步似乎取决于您的操作系统版本。如果xcode-select --install 不起作用,请尝试在/System/Library/CoreServices 中启动Install Command Line Developer Tools 应用程序。

    重新安装命令行工具后尝试重新运行bundle install

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-04
      • 2017-02-22
      • 2022-07-06
      • 1970-01-01
      相关资源
      最近更新 更多