From: Timothy Hunter Date: 2006-05-24T06:44:18+09:00 Subject: Re: Newbie question: flickr gem installation 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) > >if I run 'type flickr' in the terminal I get: > >-bash: type: flickr: not found > > >Where are gems typically installed? > >BTW I tried to run "require 'flickr'" in an IRB session but got an >error. How can I require files in an IRB session? > >Thanks for any help! >Ingo Weiss > > > You probably need to add the line require 'rubygems' to your script preceding the "require 'flikr' statement. http://docs.rubygems.org/