Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
[insert screenshot]
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Visit http://xquartz.macosforge.org/trac/wiki and download and install 2.7.2+.
You will need to fix the symlink it makes:
ln -s /opt/X11 /usr/X11
brew tap homebrew/dupes
brew install apple-gcc42
brew list
Will tell you what you need to check. Try out everything one by one and when one doesn't work brew remove it
and then reinstall it. If the install doesn't work, try brew install it --use-gcc
to prevent llvm from getting in the way.
Things that gave me issues that I had to remove and install:
- macvim
- imagemagick
- ghostscript
You might need to install libxml2 and link it manually to make sure you don't get the wrong xml2-config if your path:
brew install libxml2
brew link libxml2
Run brew doctor
and fix anything it tells you.
You may also need to symlink gcc for certain ruby gems and other stuff like that:
sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2
You are good to go.
- http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
- http://coderwall.com/p/dtbuqg
Install with
CPPFLAGS=-I/opt/X11/include rvm install 1.8.7
Libv8 needs to be manually installed with
RUBYOPT=-rrubygems gem install -v [version] libv8
Depends on libtool. If installed before upgrade, this must be reinstalled.
brew uninstall libtool
brew install libtool
gem install rmagick