2014-11-02 55 views
0

我在Gemfile中添加了一些gem,特別是activerecord,sinatra-activerecord,sqlite3,shotgun和tux。當我運行'捆綁安裝'時,我得到這個奇怪的錯誤,似乎沒有關於它的任何Googleable信息。以下是錯誤我得到:錯誤:安裝bond時出錯:

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 

回答

6

也許這個問題有一個最近的Xcode更新做。一個XCode的更新後,你需要做以下步驟:

  1. 打開Xcode和接受許可協議
  2. 重新安裝命令行工具。

第二步似乎取決於您的操作系統版本。如果xcode-select --install不起作用,請嘗試啓動/System/Library/CoreServices中的Install Command Line Developer Tools應用。

重新安裝命令行工具後,嘗試重新運行bundle install