Pages

Sunday, March 08, 2009

How to install Rmagick and ImageMagick on windows

I'm installing RMagick and ImageMagick in my windows machine. So here is what I can summarize:

1. Visit Rmagick project page at rubyforge

2. Download the latest version of RMagick for win32 (At the time of writing this. The version is 2.9.0)
3. Unpacked it into temporary directory.
4. Open the README file in unpacked folder. Here is the summary of what README said:
  1. Double click on ImageMagick-6.4.8-6-Q8-windows-dll
  2. Make sure that you use the latest version of ruby gems (gem update --system)
  3. Install the rmagick. Type (gem install -l rmagick-2.9.0-x86-mswin32.gem) NOTE: This gem is already there in the unpacked folder.
If success, it should show like this:



If you get this message, "Error installing gem rmagick[.gem]: buffer error". It means that you did not update rubygems.


Again, I got a problem after installing this. This message was appeared :

rake aborted!
126: The specified module could not be found. - c:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.9.0-x86-mswin32/ext/RMagick2.so

But it resolved only by closing any open command line windows. Then start the new one.

Hope these steps help you!


Enjoy and Cheers! ^_^

1 comment:

  1. Thanks... I was getting the error and resolved that by closing the cmd window and then restart it.

    ReplyDelete