Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 464
Giovanni Avatar asked Nov 26 '13 22:11

Giovanni


People also ask

How do I manually install command line tools?

You can install and update each package using Android Studio's SDK Manager or the sdkmanager command line tool. All of the packages are downloaded into your Android SDK directory, which you can locate as follows: In Android Studio, click File > Project Structure. Select SDK Location in the left pane.

Why is Xcode not installing on my Mac?

Open the Mac App Store and sign out of it. Cancel the installation/download. Next, quit the Mac App Store and then restart your Mac. Once you're back on your desktop, open the Mac App Store, sign in again, and then download and install the app.


1 Answers

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

like image 101
zaph Avatar answered Oct 19 '22 18:10

zaph