Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install command line tools on OSX Mavericks

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?

like image 318
Kirill Avatar asked Aug 13 '13 18:08

Kirill


People also ask

How do I open Xcode command-line tools on a Mac?

Start Xcode on the Mac. Choose Preferences from the Xcode menu. In the General window, click the Locations tab. On the Location window, check that the Command Line Tools option shows the Xcode version (with which the Command Line Tools were installed).


1 Answers

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.

like image 125
Kirill Avatar answered Oct 04 '22 02:10

Kirill