Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 445
jonderry Avatar asked Jul 30 '12 06:07

jonderry


2 Answers

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.

like image 73
Tom Rossi Avatar answered Oct 04 '22 00:10

Tom Rossi


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

solved for me

like image 35
kamal Avatar answered Oct 04 '22 01:10

kamal