What do setting do I use for xcode-select -switch?

人盡茶涼 提交于 2019-12-21 05:01:03

问题


I'm trying to install octave on macos mountain lion via the following:

sudo port install octave

However, the result of this command is always the following:

Error: 
Error: No valid Xcode installation is properly selected.
Error: Please use xcode-select to select an Xcode installation:
Error:     sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer # version 4.4
Error: 

I've tried the suggested sudo xcode-select -switch command to no avail. The same error always occurs. Any ideas how to resolve this problem?


回答1:


Did you install xcode or just the command line tools?

I installed just the command line tools and was able to trick some GEMS by using the following command:

sudo xcode-select -switch /usr/bin

I basically pointed them to the bin folder where my GCC lives.




回答2:


sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

solved for me



来源:https://stackoverflow.com/questions/11716110/what-do-setting-do-i-use-for-xcode-select-switch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!