OSX / Homebrew – Rmagick Istallation Problem on imagemagick 6.8.x

After upgrade to imagemagick 6.8.x, I started to face some problems on installing rmagick gem.

Googling, I found many tips about how to fix this, but none worked for me. Till I found the solution:

$ cd /usr/local/Cellar/imagemagick/6.8.7-7/lib
$ ln -s libMagick++-6.Q16.dylib   libMagick++.dylib
$ ln -s libMagickCore-6.Q16.dylib libMagickCore.dylib
$ ln -s libMagickWand-6.Q16.dylib libMagickWand.dylib