John Conrad wrote: > On 6/4/06, Timothy Hunter <TimHunter / nc.rr.com> 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 > I'm stumped. I purged my playpen version of RMagick and installed it via a normal "gem install": timothyhunter$ ruby --version ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0] timothyhunter$ gem --version 0.8.11 timothyhunter$ irb irb(main):001:0> Magick NameError: uninitialized constant Magick from (irb):1 irb(main):002:0> require 'rubygems' => true irb(main):003:0> require 'RMagick' => true irb(main):004:0> puts Magick::Long_version This is RMagick 1.11.1 ($Date: 2006/05/27 21:05:59 $) Copyright (C) 2006 by Timothy P. Hunter Built with ImageMagick 6.2.7 04/27/06 Q8 http://www.imagemagick.org Built for ruby 1.8.4 (2005-12-24) [powerpc-darwin8.3.0] Web page: http://rmagick.rubyforge.org Email: rmagick / rubyforge.org => nil irb(main):005:0>