wnomjg
Last Updated: January 06, 2019
·
16K
· 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

2653

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

over 1 year ago ·
2856

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

over 1 year ago ·
2924

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

over 1 year ago ·
2950

worked for me, thanks!

over 1 year ago ·
3040

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 ·
3132

Worked for me too. Thanks!!

over 1 year ago ·
3207

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 ·
3329

Thank you for this.

over 1 year ago ·
3336

Great, you save me!!

over 1 year ago ·
3352

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 ·
3478

Thank you so much!!

over 1 year ago ·
3481

WIN

over 1 year ago ·
3661

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

over 1 year ago ·
3899

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

over 1 year ago ·
5149

Thank you - worked like magick :)

over 1 year ago ·
6453

Thanks!

over 1 year ago ·
7493

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

over 1 year ago ·
7610

Thanks!

over 1 year ago ·
7750

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 ·
11648

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

over 1 year ago ·
12311

Just thanks.

over 1 year ago ·
12641

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

over 1 year ago ·
16142

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 ·