Forum: Ruby rmagick gem path problem?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
494e0313d09e2b405fcc19c7405239a4?d=identicon&s=25 bmgz (Guest)
on 2006-04-03 21:49
(Received via mailing list)
I am having a slight problem getting the
rmagick gem loaded with rails...

I can do this:

require 'RMagick'
=> true
Magick.inspect
=> "Magick"

but this does not work:

require 'rubygems'
=> true
require_gem 'rmagick'
=> true
Magick.inspect
NameError: uninitialized constant Magick
         from (irb):3

any ideas?
9358cc96c46055cd68d4a76a9aefe026?d=identicon&s=25 Daniel Harple (Guest)
on 2006-04-03 22:07
(Received via mailing list)
On Apr 3, 2006, at 9:48 PM, bmgz wrote:

> require 'rubygems'
> => true
> require_gem 'rmagick'
> => true
> Magick.inspect
> NameError: uninitialized constant Magick
>         from (irb):3
>
> any ideas?

See:

http://groups.google.com/group/comp.lang.ruby/brow...
97fc6d4401e1dc47/44794c4fdb29c3bb?rnum=2#44794c4fdb29c3bb

-- Daniel
494e0313d09e2b405fcc19c7405239a4?d=identicon&s=25 bmgz (Guest)
on 2006-04-03 22:19
(Received via mailing list)
Daniel Harple wrote:

 > See:
 >
 >
http://groups.google.com/group/comp.lang.ruby/brow...

 > 97fc6d4401e1dc47/44794c4fdb29c3bb?rnum=2#44794c4fdb29c3bb
 >
 > -- Daniel
...

Ok, then if RAILS is using require 'RMagick' then everything
should be fine, alas it's some RAILS environment path that
needs to be set..
This topic is locked and can not be replied to.