Getting the rmagick 2.12.2 gem working on Mac OS X

How you can go about getting RMagick working on Mac OSx

So getting rmagick 2.12.2 working on Mac OS X isn't the easiest thing in the world, but it is possible.

The first thing I should say is that this assumes you already have ImageMagick installed on your machine, the second thing is that there is a rmagick 2.13.2 gem, which seems to work out of the box.

In my case I couldn't use 2.13.2 so I had to get things working with 2.12.2.

If you Google this issue there are loads of solutions out there, unfortunately all the low hanging fruit didn't work for me, these are things like;

  • Making sure ImageMagick is installed
  • Telling the ruby gem where ImageMagick lives with -- --with-opt-dir

Thanks to this link I was able to get it sorted.

Here is a dump of the fix that you type into the terminal;

cd /usr/local/Cellar/imagemagick/6.8.0-10/lib
ln -s libMagick++-Q16.7.dylib   libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib

Recent posts View all

Productivity

5 ways to speed up your software development

I love feeling like I am speeding through development tasks, here are five things that can help speed up your software development

Accessibility SEO

The main reasons why we shouldn't use click here as link text

There are many reasons why we shouldn't use click here or similar as link text, let's go through them