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.
Short version: the answer to my problem is to install the full Xcode, not only the Command Line Tools.
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/Xcode.app/Contents/Developer and this solved my problem.