Last Updated: February 25, 2016
·
5.813K
· gokuu

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

4 Responses
Add your response

The formatting is awful. Not readable at all.

over 1 year ago ·

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 ·

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

over 1 year ago ·

@gokuu thanks!

over 1 year ago ·