wtpsbg
Last Updated: February 25, 2016
·
4.602K
· zapic0

Installing rmagick 2.13.1 in MacOS X Mavericks

Sometimes we are tied to several constraints by legacy projects and old gems we need to use.

I've had a lot of problems to install rmagick 2.13.1 in mavericks so here you have step by step instructions to install it if you need it.

First step is installing imagemagick 6.8.0-10 version. We list the imagemagick versions with brew:

 brew versions imagemagick
6.8.7-7  git checkout 9de9f8d Library/Formula/imagemagick.rb
6.8.7-0  git checkout 14a1fa8 Library/Formula/imagemagick.rb
6.8.6-3  git checkout 870d5e9 Library/Formula/imagemagick.rb
6.8.0-10 git checkout 321b293 Library/Formula/imagemagick.rb
6.7.7-6  git checkout 7d951fb Library/Formula/imagemagick.rb
...

 cd $( brew --prefix )
 git checkout 321b293 Library/Formula/imagemagick.rb
 brew install imagemagick

Since this imagemagick version, we need to create three symlinks:

 cd "`Magick-config --prefix`"
 ln -s libMagick++-Q16.7.dylib   libMagick++.dylib
 ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
 ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib

Once imagemagick 6.8.0-10 is installed, we can install rmagick 2.13.1:

 gem install rmagick -v 2.13.1
Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed

If brew doesn't find this gem version, you can download it here:
http://rubygems.org/gems/rmagick/versions/2.13.1

After download, move the gem to the path where you'll try to install it and then repeat the gem install command.

You can find more information about installing old versions with brew:
http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula

More information about symlinks for imagemagick:
http://stackoverflow.com/questions/13963404/rails-and-os-x-how-to-install-rmagick

1 Response
Add your response

17474

does not work

over 1 year ago ·