Xcode 5.0 Error installing command line tools

lazyboy007 picture lazyboy007 · Sep 28, 2013 · Viewed 27.3k times · Source

I just downloaded the last version for Xcode (5.0) and need it develop some Pascal codes on Lazarus. However, the installation requires me to use command line tools, which have a problem downloading. When I click install, the program sends me this error message: "Failed to install 'Command Line Tolls' An unknown error occurred. Please try again later."

I have also tried using other IDEs, like lightweight, but they all require Free Pascal, which is the tool that needs command line tools.

Does anyone know what the problem is?

Thanks in advance :)

Answer

zaph picture zaph · Sep 28, 2013

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: enter image description here