Tuesday, August 25, 2009

Have problem to install RMagick in Windows Vista?

I tried a lot for installing RMagick in windows vista machine, but it failed.Everything seemed to be working but
"require 'RMagick'
was failing giving some CORE_magic.dll error and saying couldn't find the module RMacgick2.so though it was there in the RMagick gems's ext directory. As you too may guess, it's ruby error but it is not. The problem was with imagemagick stuff. After I set path of the ImageMagick installation, it started to work without any error. So, I want to list easy steps to follow to get the RMagick things work in your windows machine.

1. Download the RMagick gem from
here.
2. Unzip the file into a directory, say, 'Temp' and install ImageMagick.
3. Set the installation path of ImageMagick in system path.
4. Install the gem locally from the Temp directory.

The only point missing from other tutorial is setting the system path for ImageMagick.