20

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 :)

1
  • Try again later, it is probably a transient server/network error. See this SO answer
    – zaph
    Sep 28, 2013 at 13:01

2 Answers 2

59

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

8
  • 1
    By the way, if you are under Mavericks now the "Command Line Tools" are not listed anymore: you have to download them manually from Apple Developers' portal
    – koda
    Oct 24, 2013 at 6:22
  • @koda The above link does not work, it is linked to your session.
    – zaph
    Oct 24, 2013 at 11:12
  • 1
    @koda: Just to be sure: in 5.0.1/10.9 the absence of an entry for Command Line Tools in the Downloads pane doesn't mean that the tools are already installed, but means that they can't be installed that way (any more)?
    – orome
    Oct 27, 2013 at 20:15
  • I've posted a related question about the consequences of following this procedure.
    – orome
    Oct 27, 2013 at 20:32
  • 2
    Under Mavericks (OSX 10.9) and having just upgraded to latest Xcode (v. 5.02), running "xcode-select --install” from terminal, as suggested, worked immediately. Dec 3, 2013 at 0:54
3

Download and re-install didn't work for me. Had to go to Xcode and choose which install to use in Preferences/Locations. (I had accumulated several from Xcode 4, 5 and 6.)

enter image description here

1
  • This helped me on Yosemite version 10.10.3 (Mac mini Late 2012) - Xcode Version 6.3.2 (6D2105). May 28, 2015 at 11:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.