How to install command line tools on OSX Mavericks
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.
Open Terminal
Type “xcode-select --install” in terminal (without quotes)
A pop-up windows will appears asking you about install tools
choose install tools
wait install to finish it will take 30 minutes
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
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, 2022Comments
-
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 over 10 yearsNote 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 over 10 yearsSeems like you summarised from here without acknowledging!!
-
Anton Danilchenko over 10 yearsThanks 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 over 10 yearsI 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 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 about 10 yearsThat works, but why did Apple want to remove that from Xcode Preferences->Download. Something to do with their innovative ideas?
-
fearless_fool about 10 yearsIf 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 about 10 yearsThis doesn’t work anymore: “Can't install the software because it is not currently available from the Software Update server.”
-
Chet almost 10 yearsid it possible to do this without the GUI?
-
leviathan almost 10 years@Chet have you tried this one? apple.stackexchange.com/questions/107307/…
-
Pontus Granström over 9 yearsThis doesn't work anymore. See stackoverflow.com/questions/19691701/….