Getting RMagick working with Mountain Lion
So, had to upgrade to Mountain Lion just now due to a client reporting a bug in our application. First thing I noticed is, all my rails projects that use RMagick stopped working. Basically the OS update broke my installation of ImageMagick+RMagick.
Managed to fix it following these steps:
- Installed XCode 4.4 and Command Line Tools
-
Ran this in terminal:
sudo chown -R <user> /usr/local
brew update
brew tap homebrew/dupes
brew install apple-gcc42
Installed XQuartz 2.7.2 (http://xquartz.macosforge.org/landing)
Fixed any errors reported by brew doctor
-
Ran this in terminal:
gem uninstall rmagick
brew uninstall imagemagick
brew install --fresh imagemagick
gem install rmagick
After this, RMagick worked flawlessly again!
Disclaimer: these steps are combination of the indications on these two posts which have been a great help (otherwise I would still be banging my head trying to figure out how to fix this):
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
http://tektastic.com/2012/07/getting-rmagic-and-friends-to-work-on.html
Written by Pedro Rodrigues
Related protips
4 Responses
The formatting is awful. Not readable at all.
sudo chown -R <user> /usr/local
brew update
brew tap homebrew/dupes
brew install apple-gcc42
- then -
gem uninstall rmagick
brew uninstall imagemagick
brew install --fresh imagemagick
gem install rmagick
@sadfuzzy Fixed it. @coderwall publishes the post differently than shown on preview
@gokuu thanks!