RMagick, win32, installs but won't load

I tried installing RMagick-1.9.1-IM-6.2.3-win32 gem on WinXp, running Ruby
1.8.2, build 15 (12-25-2005).

I downloaded and installed the Win32 build of Rmagic as per the
instructions:
1) Unpack the zip
2) gem install RMagick-1.9.1-IM-6.2.3-win32 gem
3) ruby postinstall.rb

The gem install tells me it successfully installed the gem. Postinstall
throws a ton of warnings ala "Warning: Ignored file
c:/windows/fonts/AcadEref.ttf, exception occurred.", but only warnings. I'm
assuming that's just because I don't have those fonts and that it's not a
show stopper (after all, only warnings).

At the end of post install, I get:

ok.
setting MAGICK_CONFIGURE_PATH to 'c:/program
files/ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/config'.
setting is only for current user.
Copying 5 dlls to c:/program files/ruby/bin...done.
all done.

So, it would seem that everything was okay.

However, when I go into IRB, I get the following error[1]. Any ideas what's
going on here?

Thanks,
Matt

[1]
irb(main):001:0> require 'rmagick'
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:32:
warning: already initialized constant PercentGeometry
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:33:
warning: already initialized constant AspectGeometry
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:34:
warning: already initialized constant LessGeometry
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:35:
warning: already initialized constant GreaterGeometry
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:36:
warning: already initialized constant AreaGeometry
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:39:
warning: already initialized constant FLAGS
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:44:
warning: already initialized constant RFLAGS
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:73:
warning: already initialized constant RE
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:110:
warning: already initialized constant ALIGN_TYPE_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:115:
warning: already initialized constant ANCHOR_TYPE_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:121:
warning: already initialized constant DECORATION_TYPE_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:128:
warning: already initialized constant FONT_WEIGHT_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:139:
warning: already initialized constant GRAVITY_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:146:
warning: already initialized constant PAINT_METHOD_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:158:
warning: already initialized constant STRETCH_TYPE_NAMES
C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-win32-1.9.2-mswin32/lib/rmagick.rb:164:
warning: already initialized constant STYLE_TYPE_NAMES
NameError: undefined method `assoc' for class `Magick::ImageList'
        from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-
win32-1.9.2-mswin32/lib/rmagick.rb:1002:in `undef_method'
        from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/RMagick-
win32-1.9.2-mswin32/lib/rmagick.rb:1002
        from C:/Program
Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
`require__'
        from C:/Program
Files/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in `require'

Belorion wrote:

However, when I go into IRB, I get the following error[1]. Any ideas
what's
going on here?

It looks like something is requiring RMagick twice. What happens when
you use

require 'RMagick'

Note the capitalization. The gem is named "rmagick" but the library is
"RMagick".

···

--
Posted via http://www.ruby-forum.com/\.