I am trying to install ImageMagick on Windows. What I did is install Windows RailsInstaller created my version and now I need to use ImageMagick but for some reason it doesn
Here yo go, to install ImageMagick and build the RMagick gem and make it all work.
Follow below steps:
In the command line type convert -version to check if everything works. It should print something like:
Version: ImageMagick 6.6.1-10 2010-05-15 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP
Install the DevKit if you haven't already.
gem install rmagick --platform=ruby -- --with-opt-lib=c:/ruby192/ImageMagick/lib --with-opt-include=c:/ruby192/ImageMagick/include
(Making sure the paths point to wherever you installed imagemagick)
It should print
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
And after a few minutes if everything goes right, you should see
Successfully installed rmagick-2.13.1
1 gem installed
Installing ri documentation for rmagick-2.13.1...
Installing RDoc documentation for rmagick-2.13.1...
And that's it. Just two more links that were helpful: 1 blog and 2 blog if you still can't install
Install ImageMagick windows binaries from https://sourceforge.net/projects/imagemagick/files/im6-exes/, findout where is it installed
Like
C:\Program Files (x86)\ImageMagick-6.7.9-Q16
or some other directory, depending upon your system...
And run following commands in command prompt
set CPATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\include
set LIBRARY_PATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\lib
gem install rmagick
Replacing
C:\Program Files (x86)\ImageMagick-6.7.9-Q16
with directory where you actually installed Image Magick
this is the only approach that worked for me:
http://rails.webintellix.com/2010/01/04/how-to-install-rmagick-imagemagick-on-windows/
There is it better described: http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows
How to install ImageMagick on Windows 8.1, as of 5/1/2017:
take a deep breath
uninstall imagemagick/rmagick/everything that's failed so far
make sure you have the DevKit that the accepted answer linked to
Don't download the current v7 of ImageMagick. I have no idea why, but it doesn't work. Instead download ImageMagick-6.9.8-4-Q16-x86-dll.exe from here