Created
December 16, 2012 11:13
-
-
Save Frobitz/4306392 to your computer and use it in GitHub Desktop.
Install Homebrew on OS X 10.8.2 Mountain Lion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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