2016-11-07 67 views
0

我正在关注此链接:http://railsapps.github.io/installrubyonrails-mac.html 要设置我的ROR环境,我已成功升级到MacOS Sierra,并且还使用命令行工具安装了Xcode,但不幸的是,当我在终端中键入gcc时我得到以下结果在设置Ror环境中使用gcc设置mac时出现问题

Alis-MacBook-Pro:~ aliahmad$ gcc 
xcrun: error: invalid active developer path 
    (/Library/Developer/CommandLineTools), missing xcrun at:  
    /Library/Developer/CommandLineTools/usr/bin/xcrun 

我不知道这是什么意思有人可以帮助我整理出来这将是对我来说很有帮助。

+0

[无效活性显影剂上MAC OS X安装Ruby后路径(的可能的复制http://stackoverflow.com/questions/28706428/invalid-active-developer-path -on-mac-os-x-after-installing-ruby) –

+0

如何解决这个问题? –

回答

0

this博客有解决同一个问题的博客。

执行命令

xcode-select --install 
+0

我已经做了,但结果是相同的,现在我试图从appstore下载Xcode。希望它可以解决问题,但仍然不知道我是否遵循正确的道路 –