rmagick gem on Windows¶
- HowTo install rmagick gem on Windows
You need to have the DevKit installed.
Installation of ImageMagick¶
Download last setup package from http://www.imagemagick.org/script/binary-releases.php#windows and run it.
In the Select Additional Tasks page of the wizard, make sure that both Add application directory to your system path and Install development headers and libraries for C and C++ options are checked:
Note: Both the ImageMagick application directory and the Windows System32 directory contain an executable named "convert.exe". Unless ImageMagick's directory is added the front of the system path, its copy will not be found. This will cause the test suggested at the completion of the installation to fail with a message "Invalid Drive Specification". Also note that Window's copy of "convert.exe" will not be found, if ImageMagick is placed first in the path.
Installation of the
- open a new command prompt
LIBRARY_PATHenvironment variables to point respectively to
libsubdirectories (so the DevKit will find them at build time)
set CPATH=C:\Program Files\ImageMagick-6.7.7-Q16\include
set LIBRARY_PATH=C:\Program Files\ImageMagick-6.7.7-Q16\lib
- actually install the gem, e.g. with
gem install rmagickor
bundle install --without=development test, etc.