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.
Written by Pavel Pravosud
Related protips
23 Responses
Here's a related github issue: https://github.com/mxcl/homebrew/issues/16625

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

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

worked for me, thanks!

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

Worked for me too. Thanks!!

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

Thank you for this.

Great, you save me!!

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?

Thank you so much!!

WIN

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

@trusche This was the final piece to the puzzle. Thanks!
Thank you - worked like magick :)

Thanks!

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

Thanks!

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

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

Just thanks.

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

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 "