linux -- require question

J

Jay Damask

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.
 
J

Joshua Schairbaum

Jay,

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

Josh
 
S

spin- vector

Joshua said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top