Skip to content

Instantly share code, notes, and snippets.

@netologist
Created August 16, 2012 14:51
Show Gist options
  • Save netologist/3370765 to your computer and use it in GitHub Desktop.
Save netologist/3370765 to your computer and use it in GitHub Desktop.
Fix Mountain Lion 10.8 Brew Problems
Saving the private “brew” from Mountain Lion
sudo chown -R `whoami` /usr/local
go to Xcode -> Preferences -> Downloads tab then install the “Command Line Tools.”
download and install XQuartz 2.7.2
sudo ln -s /opt/X11 /usr/X11
do logout and login
brew update
brew upgrade maybe ;)
brew cleanup as you wish ;)
when you met:
...
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
cd /usr/local/
git fetch origin
git reset --hard origin/master
when you met:
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install serf
and/or
...
Error: Failed executing: ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/serf/1.1.0 (serf.rb:14)
sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain
May the brew be with you…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment