Last Updated: September 09, 2019
·
17.8K
· rwz

Install rmagick gem on latest imagemagick.

If you've upgraded imagemagick to version 6.8.0-10 with homebrew recently, you may've noticed that rmagick gem won't work or install anymore.

Here's how to fix that:

$ 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

After that rmagick gem should install without any problems.

Update: Also, note that rmagick was last updated more than two years ago. So I recommend considering some other gem for working with images if you start a new project. Minimagick is quite good for example.

23 Responses
Add your response

Here's a related github issue: https://github.com/mxcl/homebrew/issues/16625

over 1 year ago ·

I cannot tell you how happy I am right now. Thanks!

over 1 year ago ·

Thank you so much! I found I only needed the libMagick++.dylib link for it to work.

over 1 year ago ·

worked for me, thanks!

over 1 year ago ·

I followed a few tutorials on getting rmagick and imagemagick playing nicely together, but only yours worked. Thank you SO much!!

over 1 year ago ·

Worked for me too. Thanks!!

over 1 year ago ·

Thank you so much for this.

I also ran into one more error though, and I had to type this, which made it finally compile:

ln -s /usr/local/Cellar/libtool/2.4.2/lib/libltdl.7.dylib /usr/local/lib/libltdl.7.dylib

over 1 year ago ·

Thank you for this.

over 1 year ago ·

Great, you save me!!

over 1 year ago ·

I think, the problems with rmagick installation will last 4ever.. Every other release - new problems. Can anyone add links on brew update to the repo?

over 1 year ago ·

Thank you so much!!

over 1 year ago ·

WIN

over 1 year ago ·

Thank you!!!! You saved my live!!!!

over 1 year ago ·

@trusche This was the final piece to the puzzle. Thanks!

over 1 year ago ·

Thank you - worked like magick :)

over 1 year ago ·

Thanks!

over 1 year ago ·

La Ola! At last... Thank you very much for your input

over 1 year ago ·

Thanks!

over 1 year ago ·

for version 6.8.6-3:

ln -s libMagick++-6.Q16.dylib libMagick++.dylib
ln -s libMagickCore-6.Q16.dylib libMagickCore.dylib
ln -s libMagickWand-6.Q16.dylib libMagickWand.dylib
over 1 year ago ·

Cay pls suggest me I am facing the same problem but in Windows 7 machine ?

over 1 year ago ·

Just thanks.

over 1 year ago ·

Thank you so much. This solution works for my installed version of imagemagick 6.8.7-7

over 1 year ago ·

Thanks! This worked for me on imagemagick 6.8.9-5

"
By: rceee 1
Thank you so much for this.

I also ran into one more error though, and I had to type this, which made it finally compile:

ln -s /usr/local/Cellar/libtool/2.4.2/lib/libltdl.7.dylib /usr/local/lib/libltdl.7.dylib "

over 1 year ago ·