From: John Conrad Date: 2006-06-04T23:49:46+09:00 Subject: Re: strange results when require'ing RMagick ------=_Part_20516_6533013.1149432581350 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 6/4/06, Timothy Hunter wrote: > > > What version of RMagick do you have installed? > > In the 2nd session, when require returns "false", try this: > > puts Magick::Long_version > > What happens? > > I have rmagick-1.11.1 installed, and I uninstalled all previous versions to make sure they weren't somehow confusing my system. The second session is the same as the first session except the order of the calls are reversed. The constant 'Magick' is uninitialized until I make the second call to require (perhaps I should have demonstrated this explicitly as I did in the first session). Anyway, here's what happens: $ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'rmagick' => false irb(main):003:0> puts Magick::Long_version NameError: uninitialized constant Magick from (irb):3 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/specification.rb:227 ------=_Part_20516_6533013.1149432581350--