From: Ingo Weiss Date: 2006-05-24T19:53:07+09:00 Subject: Re: Newbie question: flickr gem installation Amazing. Changing the script's name indeed did the trick. Now playing with the gem in IRB works, too! Thanks! Ingo uncutstone wu wrote: > Ingo Weiss wrote: >> Hi, >> >> I installed the 'flickr' gem using 'gem install flickr'. Everything >> seemed to work fine, and the gem shows up in the rDoc as installed. >> >> However, if I run the following script >> >> >> #! /usr/local/bin/ruby -w >> >> require 'flickr' >> flickr = Flickr.new >> >> >> I get the following error: >> >> ./flickr.rb:15: uninitialized constant Flickr (NameError) >> > > That's because "require flickr" load flickr.rb you wrote instead of the > one you installed, you need change flickr.rb you wrote to any other > names. > > Best regards, > > uncutstone -- Posted via http://www.ruby-forum.com/.