Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed to install command line tools on OSX Mavericks

I tried to install the command line tools on Mavericks following the steps in this very useful post

> xcode-select --install

but after a few short seconds I get the message

enter image description here

This seems wrong. Does anyone know how to solve this problem?


Whenever I navigate to the page that @Nikos M. is suggesting

enter image description here

I get this message

enter image description here


I followed @Rich's suggestion and I was able to download the package and install it which I wasn't able to do before, but I've found that I still don't have access to a lot of the commands that I should like arp or diskutil just to name two that I've encountered recently.

like image 365
Loourr Avatar asked Oct 30 '13 19:10

Loourr


People also ask

How do I manually install command line tools?

You can install and update each package using Android Studio's SDK Manager or the sdkmanager command line tool. All of the packages are downloaded into your Android SDK directory, which you can locate as follows: In Android Studio, click File > Project Structure. Select SDK Location in the left pane.

What are Apple command line tools?

The Command Line Tools Package is a small self-contained package available for download separately from Xcode and that allows you to do command line development in macOS. It consists of the macOS SDK and command-line tools such as Clang, which are installed in the /Library/Developer/CommandLineTools directory.


5 Answers

Install them from here. You must be a registered developer.

Other solution is: in xcode click Xcode>Open Developer Tool>More Developer Tools

This should then take you to a link which will require a developer Apple ID sign in. From there, you'll be redirected after authenticating to https://developer.apple.com/download/more/ where you can manually download and install the Command Line Tools.

like image 152
Nikos M. Avatar answered Sep 29 '22 19:09

Nikos M.


The tools are still free, but xcode-select --install is no longer supported.

To install the latest command-line developer tools from https://developer.apple.com,

  1. Applications -> App Store -> Search -> XCode -> Install ... install XCode if you don't have it.
  2. Open XCode and close any pop-ups
  3. Go to the Xcode menu > Open Developer Tool > More Developer Tools... this opens the correct website.
  4. Find the newest version, download the dmg and install the package. The filename you're looking for is similar to "Command Line Tools (OS X 10.9).pkg"
like image 21
emery Avatar answered Sep 29 '22 17:09

emery


I had this problem for months and finally found the solution.

The problem was: I had installed it before and removed it manually. (I had problems with the bundled git. It was not the smartest move to do this.)

What i didn't remove were the files

/var/db/receipts/com.apple.pkg.CLTools_Executables.bom
/var/db/receipts/com.apple.pkg.CLTools_Executables.plist

Delete them, run xcode-select --install -> no error anymore

At least it worked for me. Hope it is helpful for somebody.

like image 31
Grey Avatar answered Sep 29 '22 18:09

Grey


I get that "Your Session has Expired" message when I try to download from within the Chrome browser. If I navigate to the site with Safari and sign in with my developer credentials then the Command Line Tools dmg downloads without a problem. I do not have a paid developer account either, btw.

like image 22
Rich Avatar answered Sep 29 '22 18:09

Rich


You can download your Command Line Tools from daw.apple.com, but try it from Safari instead of Chrome.

I tried it with Chrome for a few hours and apple would not recognize my id/password (it is the same as your AppleID). It required me to change my password after each third try, which was challenging because it would not let you use any password you've used in the last three years.

Signing in via Safari gave me no problems.

The file you are going to look for is Command Line Tools (OS X Mavericks) for Xcode - Late October

If your terminal still says you need to install command line tools, it may be an issue with gcc-4.2. I was able to confirm that was the issue by following my terminal message after I ran "bundle install" on my rails app. If this is your issue, you will do the following follow Housen's solution here. Best of luck

like image 42
Theresa Luu Avatar answered Sep 29 '22 17:09

Theresa Luu