Linux -- require question

I’m a newbie. I’ve locally installed ruby and rubygems on my linux box
(call it /home/). I’ve successfully installs rails and rake via gem
install, however from irb I get:
irb(main):002:0> require ‘rails’
LoadError: No such file to load – rails
from (irb):2:in `require’
from (irb):2

but for something simple it succeeds:
irb(main):004:0> require ‘date’
=> true

$gem list
does show me all the packages that I’ve installed, and

$gem env
correctly shows where the gems are located. I haven’t explicitly set any
environment variables…

What do I need to do so that require finds the gems?

Thanks.

Jay,

I believe that you first need to require ‘rubygems’ in IRB before you
can require any single gem.

Josh

Joshua S. wrote:

Jay,

I believe that you first need to require ‘rubygems’ in IRB before you
can require any single gem.

Josh

Josh,

oh man! It works now. Thanks so much.

-Jay