Skip to content

Instantly share code, notes, and snippets.

@iantropov
Created May 2, 2013 13:21
Show Gist options
  • Save iantropov/5502118 to your computer and use it in GitHub Desktop.
Save iantropov/5502118 to your computer and use it in GitHub Desktop.
Rmagick on windows
1. So edit the gems/rmagick-2.13.1/ext/RMagick/extconf.rb file at #171 and #178 like below: "`identify -version` =~ /Version: ImageMagick (\d+\.\d+\.\d+)-\d+ /"
2.1) Ruby => http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe
2) DevKit => http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe
3) ImageMagick => http://www.imagemagick.org/download/binaries/ImageMagick-6.6.7-9-Q16-windows-dll.exe !!!!!32bits
4) RMagick => https://github.com/rmagick/rmagick/zipball/master
5) type-windows.xml => http://www.imagemagick.org/source/type-windows.xml
3. 1) Ruby => c:\Ruby192
2) DevKit => c:\DevKit
3) ImageMagick => c:\ImageMagick-6.6.7-Q16 [WITH HEADER !!!!!!!]
3.a) Replace c:\ImageMagick-6.6.7-Q16\config\type-ghostscript.xml with type-windows.xml
4) RMagick => c:\rmagick-rmagick
4. 1) PATH = C:\Ruby192\bin;C:\ImageMagick-6.6.7-Q16
2) CPATH = C:\ImageMagick-6.6.7-Q16\include
3) LIBRARY_PATH = C:\ImageMagick-6.6.7-Q16\lib
5. 1) cd c:\DevKit
2) ruby dk.rb init
3) ruby dk.rb install
4) C:\DevKit\devkitvars.bat (THANKS TO Joachim => http://www.waydotnet.com/blog/201
6. 1) run C:\DevKit\msys.bat
2) cd /c/rmagick-rmagick
3) ruby setup.rb
4) ruby setup.rb install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment