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


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.


  • 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
  • Me2

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

  • C7b8c0b4ef05e68e2c92cd912eca414b

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

  • De39f82072552aa31c680999b9d20030

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

  • Coding_drunk

    worked for me, thanks!

  • F2dbbdf13f636afde610b8cf537b7b20

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

  • 1ad94c47506a013327886b7e87427775

    Worked for me too. Thanks!!

  • 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

  • F2e3f2a43b49df4ef68cadb7adcb8569

    Thank you for this.

  • 9afcaea1ecdbcf50afb8c99ad77f4a80

    Great, you save me!!

  • 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?

  • Edd40217c57a8b264212f6d1aec80231

    Thank you so much!!

  • 97930a8eba974b3f841083635ce193a4


  • 024127e16bb4269ab840998fc486f8e5

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

  • Aadeae78f70b9b2ef997b5c6df31dba5

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

  • User-avatar

    Thank you - worked like magick :)

  • 553fdeca2aa4ca31417700f131cf1217


  • 51b6c3d3d3d49163daafcaa9f5f421e7

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

  • Ccdc3f7c96b9acf06a9f69cb2c664469


  • 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
  • 0_txz5slkkaf1yhymgrobss11lgxno20fgry3vs-cvj3cf1u4comlwqt9u2e9h74aapycuvvyt2zy6

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

  • C576fab8cf4254d2750ed0873a47aaef

    Just thanks.

  • Cc0a505b16669c0a5762f19c21c4b480

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

  • 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 "

Add a comment