# RMagick, win32, installs but won't load

**URL:** <https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037>\
**Category:** Ruby\
**Created:** [April 28, 2006, 1:49am UTC](https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037 "2006-04-28T01:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 28, 2006, 1:49am UTC](https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037/1 "2006-04-28T01:49:52Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 28, 2006, 2:25am UTC](https://www.ruby-forum.com/t/rmagick-win32-installs-but-wont-load/59037/2 "2006-04-28T02:25:10Z")

</div>

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”.
