问题
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