38

I am running OSX Mavericks (10.9) and while trying to update a bundle in rails, I get the following error message:

"You have to install development tools first."

I have Xcode already installed and there seems to be no option to install the tools from within the Xcode 4.6. How can I download and install command line tools via terminal?

James Lim
  • 12,915
  • 4
  • 40
  • 65
Kirill
  • 3,667
  • 4
  • 30
  • 35

3 Answers3

88

Incase, while trying to update a bundle, you get an error "You have to install development tools first." on OSX Mavericks (OSX 10.9), but you already have Xcode installed, you can still manually install the dev tools via terminal:

xcode-select --install

Do that and follow on-screen instructions. Your problem will be solved.

Kirill
  • 3,667
  • 4
  • 30
  • 35
  • 2
    I just updated to Mavericks 10.9.1 a few days ago. I was having trouble installing Phusion Passenger where a file was missing. I was advised to reinstall the command tools. I did this command and was able to successfully install it. – Pamela Cook - LightBe Corp Dec 22 '13 at 16:43
  • That works, but why did Apple want to remove that from Xcode Preferences->Download. Something to do with their innovative ideas? – biocyberman Mar 11 '14 at 19:11
  • If you *still* get the message, and mkmf.log indicates that gem is failing to find gcc-4.2, try `sudo ln -s /usr/bin/llvm-gcc /usr/bin/gcc-4.2` – fearless_fool Mar 14 '14 at 23:19
  • 1
    This doesn't work anymore. See http://stackoverflow.com/questions/19691701/failed-to-install-command-line-tools-on-osx-mavericks?lq=1. – Pontus Granström Sep 30 '14 at 21:18
18

I summarized the steps in this blog entry "How to install command line tools on OSX Mavericks"

Installing command line tools in OSX 10.9 Mavericks changes slightly compared to previous versions of MAC OSX. Now you don’t need to install Xcode. You can install the Command Line Tools as stand alone.

  1. Open Terminal enter image description here

  2. Type “xcode-select --install” in terminal (without quotes) enter image description here

  3. A pop-up windows will appears asking you about install tools enter image description here

  4. choose install tools enter image description here

  5. wait install to finish it will take 30 minutes enter image description here

I summarized the steps in this blog entry "How to install command line tools on OSX Mavericks"

leviathan
  • 11,080
  • 5
  • 42
  • 40
  • 3
    Note that [link-only answers](http://meta.stackoverflow.com/tags/link-only-answers/info) are discouraged, SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference. – kleopatra Oct 23 '13 at 09:11
  • 9
    Seems like you summarised from [here](http://www.computersnyou.com/2025/2013/06/install-command-line-tools-in-osx-10-9-mavericks-how-to/) without acknowledging!! – Arun Oct 23 '13 at 12:53
  • 1
    Thanks you a lot. It's surprise to me that Mavericks broke all python dependencies and now I need to do a lot of work to prepare my Mac to work. :-( – Anton Danilchenko Oct 23 '13 at 15:27
  • 1
    +1 for explicitly explaining "Now you don't need to install Xcode. You can install the Command Line Tools as stand alone." – David Winiecki Feb 22 '14 at 05:45
  • 12
    This doesn’t work anymore: “Can't install the software because it is not currently available from the Software Update server.” – Bombe Apr 09 '14 at 11:08
  • id it possible to do this without the GUI? – Chet May 31 '14 at 22:41
  • @Chet have you tried this one? http://apple.stackexchange.com/questions/107307/how-can-i-install-the-command-line-tools-completely-from-the-command-line – leviathan Jun 03 '14 at 11:56
12

open terminal and type xcode-select --install or open finder navigate to

/System/Library/CoreServices

and open Install Command Line Developer Tools.app

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
Alok Yadav
  • 159
  • 1
  • 7