RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! :D [UPDATE]
RMagick on Ruby 1.9.1 (i386-mingw32) Work !!! ![]()
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….
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!\config\type-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!\devkit\msys\1.0.11\bin
set PATH = !ruby_path!\devkit\gcc\3.4.5\bin
[EDIT]
7) run “ruby setup.rb” [EDIT] from msys.bat ( !ruby_path!\devkit\msys\1.0.11\msys.bat ) [EDIT]
run “ruby setup.rb install” or “gem build *.gemspec” and “gem install *.gem”
9) Enjoy
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

Error test:
File: Info.rb
Failed: test_depth(Info_UT) [Info.rb:130]: Exception raised: <#>.
Test crash : test_monitor
File: Image3.rb
Failed: test_profile! (Image3.rb:47)
Test crash: test_write =>
f = File.new(“test.0″, “w”)
@img.write(f) { self.format = “JPEG” }
f.close
img = Magick::Image.read(‘test.0′)
assert_equal(“JPEG”, img.first.format)
FileUtils.rm(‘test.0′)]
File ImageList2.rb
Failure: test_from_blob(ImageList2_UT) [ImageList2.rb:110]
Test Crash:
test_write =>
f = File.new(“test.0″, “w”)
@ilist.write(f) { self.format = “JPEG” }
f.close
list = Magick::ImageList.new(‘test.0′)
assert_equal(“JPEG”, list.format)
FileUtils.rm(‘test.0′)
Hello, Carlo!
Just repeated your steps and it’s actually work! Great! Now I can use rmagick with rubu 1.9.1 under windows. Thank you!
@Alex :
Well!
Why do you need the http://www.imagemagick.org/source/type-windows.xml instead? Shouldn’t imagemagick have come with that?
If i use normale type-ghostscript.xml, it doesn’t compile because it doesn’t find the right font. to bypass this problem (in my laptop) i have replaced it with the xml file for windows (type-windows.xml )
Interesting. Mine seems to compile with the default set, so perhaps something has changed since then…