运行rails new dearMe后收到构建错误

时间:2015-09-30 20:18:24

标签: ruby-on-rails

这是我第一次收到这样的错误。我运行rails new appName,捆绑后发生此错误。我相信它与权限有关,但我该如何解决这个错误?

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

    /Users/ericpark/.rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20150930-6103-dzkbp3.rb extconf.rb
creating Makefile

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 /Users/ericpark/.rvm/gems/ruby-2.2.0/gems/byebug-6.0.2 for inspection.
Results logged to /Users/ericpark/.rvm/gems/ruby-2.2.0/extensions/x86_64-darwin-14/2.2.0/byebug-6.0.2/gem_make.out
An error occurred while installing byebug (6.0.2), and Bundler cannot continue.
Make sure that `gem install byebug -v '6.0.2'` succeeds before bundling.
         run  bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted

1 个答案:

答案 0 :(得分:1)

运行

sudo xcrun cc

或打开XCode并接受GUI中的许可