Xcode 5.1 and OSX 10.9.
xcode-select --install
worked with version 2333, failed with version 2003. So, try xcode-select --install
and if that does not work download as described below.
arly February 2014
xcode-select --install
has been reporting that "Can't install the software because it is not currently available from the Software Update server". In late February 2014 the command started only displaying help. The solution is to download directly, see below.
Xcode 5.0.1 and Mavericks 10.9
The command line tools are no longer available via Xcode.
Direct download
They must be downloaded from the Apple Developer site. This requires signing in with a developer account.
Or they can be installed from the terminal using xcode-select --install
for certain version of xcode-select`.
For more complete information see this SO answer
Try again later, it is probably a transient server/network error.
See this SO answer
Xcode 5 screenshot: