njrnzq
5.262K
· July 2012 ·
E6eba66d71fb7b593636e5bbff7fc124

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:

  1. Installed XCode 4.4 and Command Line Tools
  2. Ran this in terminal:

    sudo chown -R <user> /usr/local

    brew update

    brew tap homebrew/dupes

    brew install apple-gcc42

  3. Installed XQuartz 2.7.2 (http://xquartz.macosforge.org/landing)

  4. Fixed any errors reported by brew doctor

  5. 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

Sign in or sign up to add your response.

4 Responses

2606
Why s

The formatting is awful. Not readable at all.

over 1 year ago ·
3071
E7c183e3efddc27e1bfc07802626548b

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

over 1 year ago ·
3072
E6eba66d71fb7b593636e5bbff7fc124

@sadfuzzy Fixed it. @coderwall publishes the post differently than shown on preview

over 1 year ago ·
3073
Why s

@gokuu thanks!

over 1 year ago ·