wnomjg
Last Updated: February 25, 2016
·
14.2K
· rwz
Userpic

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.

24 Responses
Add your response

2653
C7b8c0b4ef05e68e2c92cd912eca414b

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

over 1 year ago ·
2856
Me2

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

over 1 year ago ·
2924
De39f82072552aa31c680999b9d20030

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

over 1 year ago ·
2945
D2759ed9f4b74edb6b5ddb70c6a11164

Cheers for that. For all those that have been fiddling with the same problem and finally found this solution, if you get the following error:

ld: file not found: /usr/local/lib/libltdl.7.dylib

you need to also (re-)install libtool:

brew install --fresh libtool
brew link libtool
over 1 year ago ·
2950
Coding drunk

worked for me, thanks!

over 1 year ago ·
3040
F2dbbdf13f636afde610b8cf537b7b20

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
1ad94c47506a013327886b7e87427775

Worked for me too. Thanks!!

over 1 year ago ·
3207
67b5c2d05361fec6dce6c53ed4537192

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
F2e3f2a43b49df4ef68cadb7adcb8569

Thank you for this.

over 1 year ago ·
3336
9afcaea1ecdbcf50afb8c99ad77f4a80

Great, you save me!!

over 1 year ago ·
3352
Why s

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
Edd40217c57a8b264212f6d1aec80231

Thank you so much!!

over 1 year ago ·
3481
97930a8eba974b3f841083635ce193a4

WIN

over 1 year ago ·
3661
024127e16bb4269ab840998fc486f8e5

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

over 1 year ago ·
3899
Aadeae78f70b9b2ef997b5c6df31dba5

@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
553fdeca2aa4ca31417700f131cf1217

Thanks!

over 1 year ago ·
7493
51b6c3d3d3d49163daafcaa9f5f421e7

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

over 1 year ago ·
7610
Ccdc3f7c96b9acf06a9f69cb2c664469

Thanks!

over 1 year ago ·
7750
792f953044f62c9f51b5404465dd3959

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
0 txz5slkkaf1yhymgrobss11lgxno20fgry3vs cvj3cf1u4comlwqt9u2e9h74aapycuvvyt2zy6

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

over 1 year ago ·
12311
C576fab8cf4254d2750ed0873a47aaef

Just thanks.

over 1 year ago ·
12641
Cc0a505b16669c0a5762f19c21c4b480

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

over 1 year ago ·
16142
154173 466027521751 536786751 6015956 6344910 n normal

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 ·