Where developers come to connect, share, build and be inspired.

111

Install rmagick gem on latest imagemagick.

9583 views

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.

Comments

  • Blank-mugshot
    trusche

    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
    

  • Me2
    westonplatter

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

  • Blank-mugshot
    linjunpop

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

  • Blank-mugshot
    ngzax

    Thank you so much... fixed it for me! Daryl

  • Blank-mugshot
    clemcke

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

  • Coding_drunk
    keikun17

    worked for me, thanks!

  • Blank-mugshot
    aarongitlin

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

  • Blank-mugshot
    neilang

    Worked for me too. Thanks!!

  • Blank-mugshot
    rceee

    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

  • Blank-mugshot
    sclarke

    Thank you for this.

  • Blank-mugshot
    javivelasco

    Great, you save me!!

  • Blank-mugshot
    sadfuzzy

    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?

  • Blank-mugshot
    hsanchez

    Thank you so much!!

  • Blank-mugshot
    jjmason

    WIN

  • Blank-mugshot
    simonfranzen

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

  • Blank-mugshot
    pwnela

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

  • E97f1ac9b2047443b9f4035d20dc2a90_normal
    altf

    Thank you - worked like magick :)

  • Blank-mugshot
    simonmd

    Thanks!

  • Blank-mugshot
    fenton42

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

  • Blank-mugshot
    gabrielengel

    Thanks!

  • Blank-mugshot
    torbjon

    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
    

  • 0_txz5slkkaf1yhymgrobss11lgxno20fgry3vs-cvj3cf1u4comlwqt9u2e9h74aapycuvvyt2zy6
    thil_1212

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

  • Blank-mugshot
    abrcoelho

    Just thanks.

  • Blank-mugshot
    datnt

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

Add a comment