-
Notifications
You must be signed in to change notification settings - Fork 101
Home
Welcome to the rmagick wiki!
You can get rmagick to compile on Windows with the command:
gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
There are three noteworthy things about this command:
- There's a double-dash separating "rmagick" and the --with-opt-dir option
- The --with-opt-dir option is surrounded by single-quotes
- The path to the ImageMagick directory is surrounded by double-quotes
You can have spaces in the path to the ImageMagick directory if you use this syntax. I think the path also doesn't care about forward or backward slashes, but I use backslashes.
You also have to make sure of two other things:
- ImageMagick was installed with the development headers option (installs lib and include directories)
- ImageMagick is first in your system path
If ImageMagick isn't first in your system path, you'll get an "Invalid drive specification" error when extconf.rb tries to identify the ImageMagick version.
All that said, I've experienced failures to build with some version pairings of rmagick and ImageMagick. I was able to get ImageMagick 6.7.7 and rmagick 2.13.1 to build together on both Windows 7 and Server 2003.
Find archived versions of ImageMagick here http://mhonarc.veidrodis.com/image_magick/binaries/