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.
bmgz (Guest)
on 2006-04-03 23: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?
Daniel H. (Guest)
on 2006-04-04 00: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
bmgz (Guest)
on 2006-04-04 00:19
(Received via mailing list)
Daniel H. 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.