Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.5 Command Line Tools - xcode-select issue

After installing Xcode CLT 4.5.1 on OS X 10.8.2, I'm having issues installing native ruby gems which need to compiled.

The output error is the same as with running xcrun -find:

xcode-select: Error: No Xcode is selected. Use xcode-select -switch , or
see the xcode-select manpage (man xcode-select) for further information.

To which CLT location should xcode-select point to, since it's no longer at /Developer?

Edit: I don't have the Xcode app installed, only CLT.

like image 889
ddario Avatar asked Oct 08 '12 11:10

ddario


People also ask

Does Xcodebuild require Xcode?

No it does not. When Xcode is installed, setting the xcode-select path to Xcode app gives you more features: in particular xcodebuild which is required for making Xcode projects from cmake etc.

What is Xcode-select in Mac?

Note: macOS comes bundled with xcode-select , a command-line tool that is installed in /usr/bin . It allows you to manage the active developer directory for Xcode and other BSD development tools.

How do I uninstall command line tools on Mac?

Xcode includes all your command-line tools. If it is installed on your system, remove it to uninstall your tools. If your tools were downloaded separately from Xcode, then they are located at /Library/Developer/CommandLineTools on your system. Delete the CommandLineTools folder to uninstall them.


1 Answers

The new location seems to be (be sure to run as root):

sudo xcode-select -switch /Library/Developer/
like image 148
jbowes Avatar answered Oct 01 '22 15:10

jbowes