Alex Popov Alex Popov - 14 days ago 5
Ruby Question

Find out the path location to Command Line Tools for Xcode

I didn't want to install the whole XCode, so I just downloaded the command line tools for Xcode. I am trying to install ruby 1.9.3 via rvm. However, rvm complains that no xcode is selected:

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

I read the xcode-select manpage and I know how to set the path to the xcode command line tools, but I don't know where they are installed. How do I find this out?

I am using OS X Mountain Lion.


Short version: the answer to my problem is to install the full Xcode, not only the Command Line Tools.

Long version:

Based on this I found out, that the location of the tools is /usr/bin . So I ran sudo xcode-select -switch /usr/bin. After that however, I got this error:

Error: failed to exec real xcrun. (No such file or directory)

So based on this I install the full Xcode app, ran sudo xcode-select -switch /Applications/ and this solved my problem.