mathiasbynens / dotfiles

:wrench: .files, including ~/.macos — sensible hacker defaults for macOS
https://mths.be/dotfiles
MIT License
30.22k stars 8.73k forks source link

.osx: Add `xcode-select --install` #263

Open mathiasbynens opened 10 years ago

mathiasbynens commented 10 years ago

From https://twitter.com/peolanha/status/392746116732551169 (@peol):

Need to install Command Line Tools in OSX Mavericks? Simply open the terminal and run xcode-select --install #protip

hkdobrev commented 10 years ago

It is important that you update your XCode after you upgrade to Mavericks and then run this command. Otherwise it is working, but not all command line tools are installed with their latest versions.

mooremo commented 10 years ago

Make sure you open Xcode and accept the EULA too or when you run xcode-select --install the process will appear to hang.

mathiasbynens commented 10 years ago

So, something like open -a Xcode && xcode-select --install?

kud commented 10 years ago

Doing xcode-select --install done that:

Usage: xcode-select -print-path
   or: xcode-select -switch <xcode_folder_path>
   or: xcode-select -version
Arguments:
   -print-path                     Prints the path of the current Xcode folder
   -switch <xcode_folder_path>     Sets the path for the current Xcode folder
   -version                        Prints xcode-select version information
mathiasbynens commented 10 years ago

@kud Seems to work fine here:

$ xcode-select --install
xcode-select: note: install requested for command line developer tools
# <opens window>

Sure you’re on OS X 10.9?

kud commented 10 years ago

I've still got 10.7 though.

mathiasbynens commented 10 years ago

@kud Well that explains it :)

kud commented 10 years ago

I see lots of difference between 10.7 and 10.8/9 about these kind of files. Gotta need to upgrade I think.