From: Rob Leslie Date: 2006-05-13T12:00:28+09:00 Subject: Re: Image Processing Questions On May 10, 2006, at 6:37 AM, Mike Brum wrote: > GD2 seems to be the most-current with the file date of March 4, 2006. > However, when I run 'gem install GD2' I get some strange errors > along with when I try to require GD2. > > C:\Documents and Settings\Mike>gem install gd2 > Attempting local installation of 'gd2' > Local gem file not found: gd2*.gem > Attempting remote installation of 'gd2' > Updating Gem source index for: http://gems.rubyforge.org > Successfully installed gd2-1.1 > Installing RDoc documentation for gd2-1.1... > > lib/gd2/image.rb:681:25: ':' not followed by identified or operator > lib/gd2/palette.rb:55:40: ':' not followed by identified or operator > lib/gd2/palette.rb:93:28: ':' not followed by identified or operator > lib/gd2/palette.rb:94:30: ':' not followed by identified or operator > lib/gd2/palette.rb:95:29: ':' not followed by identified or operator > lib/gd2/palette.rb:96:30: ':' not followed by identified or operator > lib/gd2/palette.rb:97:29: ':' not followed by identified or operator > lib/gd2/palette.rb:189:28: ':' not followed by identified or operator > lib/gd2/palette.rb:190:30: ':' not followed by identified or operator > lib/gd2/palette.rb:191:29: ':' not followed by identified or operator > lib/gd2/palette.rb:192:30: ':' not followed by identified or operator These warnings are harmless. RDoc doesn't seem to like symbols constructed from string literals. > C:\Documents and Settings\Mike>irb > irb(main):001:0> require 'GD2' > RuntimeError: unknown error > from C:/Program > Files/ruby/lib/ruby/gems/1.8/gems/gd2-1.1/lib/gd2.rb:29:in > `initialize' > from C:/Program > Files/ruby/lib/ruby/gems/1.8/gems/gd2-1.1/lib/gd2.rb:29 > from C:/Program > Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in > `require' > > from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/ > rubygems.rb:182:in > `activate' > from C:/Program Files/ruby/lib/ruby/site_ruby/1.8/ > rubygems.rb:181:in > `activate' > from C:/Program > Files/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:26:in > `require' > > from (irb):1 This error is more significant; Ruby/GD2 depends on the availability of a GD dynamic library, and until version 1.1.1 released today, had no direct support for the Win32 DLL peculiarities. You might try installing the latest gd2 gem (1.1.1). I had some success in brief testing, but there may still be issues. In particular, there may be problems using bgd.dll with versions of Ruby built under Cygwin. Versions built under mingw32 seem to work better. -- Rob Leslie rob@mars.org