# Uninitialized constant ImageList

**URL:** <https://www.ruby-forum.com/t/uninitialized-constant-imagelist/50040>\
**Category:** Rails\
**Created:** [November 18, 2005, 7:11pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-imagelist/50040 "2005-11-18T19:11:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cool\_screen\_name900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@cool\_screen\_name900](https://www.ruby-forum.com/u/cool_screen_name900)\
**Post date:** [November 18, 2005, 7:11pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-imagelist/50040/1 "2005-11-18T19:11:18Z")

</div>

I’m trying to use RMagick with Rails. I installed RMagick with:  
gem -y install rmagick

It stated it installed successfully, despite some messages that wmf2eps  
wasn’t found (I don’t have  
libwmf installed - it’s not required, is it?).

In my controller I put:

require ‘RMagick’

clown = Magick::ImageList.new(“clown.jpg”)  
clown = clown.rotate(90)  
clown.write(‘rotate.jpg’)

Using an actual existing image. Then when I try it, I get this:

uninitialized constant ImageList

RAILS\_ROOT: script/…/config/…  
Application Trace | Framework Trace | Full Trace

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active\_support/dependencies.rb:200:in  
`const\_missing’

This error occured while loading the following files:  
image\_list.rb

Any idea what the problem is and how to fix it?

thanks  
csn

* * *

Yahoo! Mail - PC Magazine Editors’ Choice 2005

> **[Yahoo Mail - Organized Email](https://mail.yahoo.com)**
>
> It's time to get stuff done with Yahoo Mail. Just add your Gmail, Outlook, AOL or Yahoo Mail to get going. We automatically organize all the things life throws at you, like receipts and attachments, so you can find what you need fast. Plus, we've got...

---

<div class="post-metadata">

**Author:** ![cool\_screen\_name900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@cool\_screen\_name900](https://www.ruby-forum.com/u/cool_screen_name900)\
**Post date:** [November 18, 2005, 8:50pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-imagelist/50040/2 "2005-11-18T20:50:54Z")

</div>

Weird. If I put the same clown code in a file and run it from the  
command line, it works. Could it  
be a problem with some Rails path var, permissions, or something?

csn

— CSN [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Application Trace | Framework Trace | Full Trace  
> thanks  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Yahoo! Mail - PC Magazine Editors’ Choice 2005

> **[\[object](https://mail.yahoo.com/)**
>
> \[object

---

<div class="post-metadata">

**Author:** ![cool\_screen\_name900](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/c68b51/32.png) [@cool\_screen\_name900](https://www.ruby-forum.com/u/cool_screen_name900)\
**Post date:** [November 18, 2005, 9:42pm UTC](https://www.ruby-forum.com/t/uninitialized-constant-imagelist/50040/3 "2005-11-18T21:42:15Z")

</div>

Jeez, turns out file\_column was interferring. Trying to load its  
libraries or something. I  
uninstalled it and restarted webrick. How aggravating…

csn

— CSN [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > I’m trying to use RMagick with Rails. I installed RMagick with:  
> > clown = Magick::ImageList.new(“clown.jpg”)
> > 
> > thanks  
> > removed\_email\_address@domain.invalid
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

* * *

Yahoo! FareChase: Search multiple travel sites in one click.  
[http://farechase.yahoo.com](http://farechase.yahoo.com)
