What do setting do I use for xcode-select -switch?
10,193
Solution 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.
Solution 2
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
solved for me
Author by
jonderry
Updated on July 06, 2022Comments
-
jonderry almost 2 years
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?