2013-11-27 26 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完美运行,完成!

相关问题