RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D Ispirate from : installing rmagick with mingw and ruby 1.9 and http://groups.google.com/group/rubyinstaller/browse_thread/thread/c837c4438d91208b but , on my laptop don’t work…. With Windows 7 work well: Step 1: DOWNLOAD
- Ruby => http://rubyforge.org/frs/download.php/74298/rubyinstaller-1.9.2-p180.exe
- DevKit => http://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe
- ImageMagick => http://www.imagemagick.org/download/binaries/ImageMagick-6.6.7-9-Q16-windows-dll.exe
- RMagick => https://github.com/rmagick/rmagick/zipball/master
- type-windows.xml => http://www.imagemagick.org/source/type-windows.xml
Step 2: Install
- Ruby => c:Ruby192
- DevKit => c:DevKit
- ImageMagick => c:ImageMagick-6.6.7-Q16 [WITH HEADER !!!!!!!] 3.a) Replace c:ImageMagick-6.6.7-Q16configtype-ghostscript.xml with type-windows.xml
- RMagick => c:rmagick-rmagick
Step 3: Set Enviroment variable
- PATH = C:Ruby192bin;C:ImageMagick-6.6.7-Q16
- CPATH = C:ImageMagick-6.6.7-Q16include
- LIBRARY_PATH = C:ImageMagick-6.6.7-Q16lib
Step 4: Configure DevKit (from https://github.com/oneclick/rubyinstaller/wiki/Development-Kit)
- cd c:DevKit
- ruby dk.rb init
- ruby dk.rb install
- C:DevKitdevkitvars.bat (THANKS TO Joachim => http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comment-86618621)
Step 5: Compile RMagick
- run C:DevKitmsys.bat
- cd /c/rmagick-rmagick
- ruby setup.rb
- ruby setup.rb install
Step 6: Check
- ruby -v ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
- identify –version Version: ImageMagick 6.6.7-9 2011-02-21 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC Features: OpenMP
If you experience problems concerning “extconf.rb”, you should try: http://phosphor-escence.blogspot.com/2010/12/if-you-fail-install-rmagick-on-mingw.html from http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comment-166014708 http://www.waydotnet.com/blog/2010/02/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/#comment-317551623 In my case : 1) Install Ruby 1.9.1 (i386-mingw32) from http://www.rubyinstaller.org/, direct link 2) Install Development Kit (DevKit) from http://www.rubyinstaller.org/addons.html, direct link 3) Install ImageMagick 6.5.6-8-Q8 from http://www.imagemagick.org , direct link with header !!!! 4) Download Rmagick from source : http://github.com/rmagick/rmagick , direct link or git clone git://github.com/rmagick/rmagick.git 5) Replace !ImageMagick Path!configtype-ghostscript.xml with http://www.imagemagick.org/source/type-windows.xml 6) Set enviroment variable : set CPATH=!ImageMagick Path!include set LIBRARY_PATH=!ImageMagick Path!lib set PATH=!ImageMagick Path! [EDIT] set PATH = !ruby_path!bin set PATH = !ruby_path!devkitmsys1.0.11bin set PATH = !ruby_path!devkitgcc3.4.5bin [EDIT] 7) run “ruby setup.rb” [EDIT] from msys.bat ( !ruby_path!devkitmsys1.0.11msys.bat ) [EDIT] 8) run “ruby setup.rb install” or “gem build *.gemspec” and “gem install *.gem” 9) Enjoy :D identify –version Version: ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC ruby -v ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] Many thanks to : Rmagick staff => http://rmagick.rubyforge.org/ rogerdpack => http://betterlogic.com Alexey Borzenkov => not have link, sorry Luis Lavena => http://blog.mmediasys.com RubyInstaller => http://www.rubyinstaller.org RubyInstaller Group => http://groups.google.com/group/rubyinstaller puts WaYdotNET => Carlo Bertini