How to install command line tools on OSX Mavericks

40,872

Solution 1

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.

Solution 2

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"

Solution 3

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

/System/Library/CoreServices

and open Install Command Line Developer Tools.app

Share:
40,872
Kirill
Author by

Kirill

Making https://SmashNotes.com and teaching at https://SuddenSchools.org Occasionally interviewing rad humans on https://GeekAtSea.com Y Combinator alum. 1x investor. Living for today.

Updated on July 16, 2022

Comments

  • Kirill
    Kirill almost 2 years

    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?

  • kleopatra
    kleopatra over 10 years
    Note that link-only answers 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.
  • Arun
    Arun over 10 years
    Seems like you summarised from here without acknowledging!!
  • Anton Danilchenko
    Anton Danilchenko over 10 years
    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. :-(
  • Pamela Cook - LightBe Corp
    Pamela Cook - LightBe Corp over 10 years
    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.
  • David Winiecki
    David Winiecki about 10 years
    +1 for explicitly explaining "Now you don't need to install Xcode. You can install the Command Line Tools as stand alone."
  • biocyberman
    biocyberman about 10 years
    That works, but why did Apple want to remove that from Xcode Preferences->Download. Something to do with their innovative ideas?
  • fearless_fool
    fearless_fool about 10 years
    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
  • Bombe
    Bombe about 10 years
    This doesn’t work anymore: “Can't install the software because it is not currently available from the Software Update server.”
  • Chet
    Chet almost 10 years
    id it possible to do this without the GUI?
  • leviathan
    leviathan almost 10 years
    @Chet have you tried this one? apple.stackexchange.com/questions/107307/…
  • Pontus Granström
    Pontus Granström over 9 years
    This doesn't work anymore. See stackoverflow.com/questions/19691701/….