Tuesday, 2 October 2007

ImageMagick / RMagick / Gruff - Installation

Installing RMagick is known to be a complex procedure, especially with an InstantRails environment. The first step is to download the RMagick-win32 package from the following location:

http://rubyforge.org/frs/download.php/24863/RMagick-1.14.1_IM-6.3.0-7-Q8-2.zip


Very nice...

The standard procedure, found in the file called README.html in the above archive, should generally be followed. However, the following modifications will need to be inserted for the installation to work with the InstantRails environment and to obtain the functionality required for FoR:

--------------------------------------
set HTTP_PROXY=http://proxy:port #(check for proxy and port in firefox)

gem update --system -y

gem install rmagick --local

gem install gruff -y


add to environment.rb -> require 'rubygems'

#also add "require 'RMagick'" to necessary controllers

#also add "require 'gruff'" in the controllers which are going to create gruff graphs
--------------------------------------

The following links may also be of use during installation:

http://docs.rubygems.org/read/chapter/3#page70
http://nubyonrails.com/pages/gruff
http://geoffreygrosenbach.com/projects/show/5

No comments: