Skip to content

Instantly share code, notes, and snippets.

@Frobitz
Created December 16, 2012 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frobitz/4306392 to your computer and use it in GitHub Desktop.
Save Frobitz/4306392 to your computer and use it in GitHub Desktop.
Install Homebrew on OS X 10.8.2 Mountain Lion
#
# From a fresh install of Mountain Lion and XCode
#
# Set /usr/local folder to current user ownership, not root
sudo chown -R `whoami` /usr/local
# Install Homebrew - follow instructions given by script
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
# Run the doctor
brew doctor
# You'll see a message about agreeing to the Xcode license. Probably good advice, type the advised command and space bar throught he two licenses
xcodebuild -license
# Should also see a message about installing "Command Line Tools for Xcode" as an alternative to experimental support for using Xcode without the "Command Line Tools" - seems logical not to risk using experimental software
# On https://developer.apple.com/downloads/index.action (you'll need a free account to login) search for latest "Command Line Tools (OS X Mountain Lion) for Xcode
# Download and install following any instructions given by the installer
# Check gcc is now installed
gcc --version
# You should see some information about the gcc version installed now rather than 'command not found'
brew doctor
# This should return 'Your system is raring to brew'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment