Xcode 4.5 Command Line Tools - xcode-select issue

ddario picture ddario · Oct 8, 2012 · Viewed 13.1k times · Source

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.

Answer

jbowes picture jbowes · Dec 10, 2012

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

sudo xcode-select -switch /Library/Developer/