From: Mike Brum Date: 2006-05-10T22:37:49+09:00 Subject: Image Processing Questions I've been digging around trying to find a good hook for GD and so far I've found Gruby (1): http://raa.ruby-lang.org/project/gruby/ Gruby (2): http://gruby.sourceforge.jp/index.en.html#download Ruby-gd: http://raa.ruby-lang.org/project/ruby-gd/ GD2: http://rubyforge.org/projects/gd2/ 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 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 irb(main):002:0> (condensed some whitespace) What I'm wondering is 1) What do people use for image processing? I've always used GD when I was using PHP and it's just "what I'm used to". I'm not really married to any particular library as long as it has all of the functionality that GD has. 2) Does anyone have any idea what went wrong with my GD gem install? I tried this on two XP sp2 systems and it yielded the same exact result (wanted to be sure it wasn't a localized problem). I also get the same results when I require GD2 on both machines (the other machine has Ruby installed to C:\ruby - so I know the path in the example above isn't an issue). Any insight is greatly appreciated! Thanks -M