2013-11-27 32 views
2

我試圖運行包和我得到這個奇怪的錯誤:錯誤,並且捆紮機不能繼續

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. 

    /Users/me/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb 
checking for ruby/util.h... *** 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. 

回答

4

我檢查了mkmf.log文件,並發現該錯誤信息。

$ cat /Users/me/.rvm/gems/[email protected]/gems/bcrypt-ruby-3.1.2/ext/mri/mkmf.log 

... 

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

... 

我剛剛更新了XCode。所以我打開了XCode,果然,我必須同意使用條款,並允許安裝運行。 bundle完美運行,完成!

相關問題