The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Sunday 16 May 2010

Install RMagic on Mac

This post documents the installation of RMagick on Snow Leopard. You need MacPorts installed. Install imagemagick library using MacPorts (have a cup of tea or coffe):

sudo port install tiff -macosx imagemagick +q8 +gs +wmf

Install rmagick gem (use sudo if you do not use rvm):

gem install rmagick

Now you should test if Ruby can use imagemagick:

irb -rubygems -r RMagick
ree-1.8.7-2010.01 > puts Magick::Long_version
This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) 2009 by Timothy P. Hunter
Built with ImageMagick 6.6.1-5 2010-05-16 Q8 http://www.imagemagick.org
Built for ruby 1.8.7
Web page: http://rmagick.rubyforge.org
Email: rmagick@rubyforge.org
=> nil
ree-1.8.7-2010.01 >

Done!

Thanks to: http://rmagick.rubyforge.org/install-osx.html

1 Comments:

At 9 November 2010 at 09:07 , Anonymous Anonymous said...

Here is my tutorial to install RMagick on a Mac
http://bcaccinolo.wordpress.com/2010/11/09/install-rmagick-on-mac-os-x/

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home