38
votes

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?

3

3 Answers

87
votes

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.

17
votes

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"

12
votes

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

/System/Library/CoreServices

and open Install Command Line Developer Tools.app