What can I use to configure xcode-select -switch?

I am trying to set an octave on a macos mountain lion through 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 tried the proposed team to sudo xcode-select -switchno avail. The same error always occurs. Any ideas how to solve this problem?

+5
source share
2 answers

Have you installed xcode or just command line tools?

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

sudo xcode-select -switch /usr/bin

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

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

decided for me

+13
source

All Articles