Can't install Command Line Tool, "xcode-select --install" doesn't work

Giovanni picture Giovanni · Nov 26, 2013 · Viewed 70.3k times · Source

I don't know how to install the Command Line Tools on OSX Mavericks. Or better: I know how to do it (I just did it on another MacBook), but something goes wrong this time.

What happened:

  • I Install Homebrew on OSX Mavericks
  • Homebrew ask me to intall the CLT and run a GUI for that
  • I make a mistake: I install XCode instead of CLT, but I find that the CLT was not installed with it

Now, when I write

brew doctor

I get this

Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.

I write what it says, but I get always

Usage: xcode-select -print-path
or: xcode-select -switch
or: xcode-select -version
Arguments:
-print-path                                             Prints the path of the current Xcode folder
-switch xcode_folder_path                     Sets the path for the current Xcode folder
-version                                                Prints xcode-select version information

I think I should instead see that GUI (screenshots) that I saw at the beginning and that let me install the CLT.

Does anyone know how can I run that GUI again?

Answer

zaph picture zaph · Nov 27, 2013

Try downloading directly from the Apple Developer Tools site: https://developer.apple.com/downloads/index.action.
This requires signing in with a developer account.