2016-11-07 40 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。希望它可以解決問題,但仍然不知道我是否遵循正確的道路 –