require rubygems works in irb but not in script
Posted
by Maulin
on Stack Overflow
See other posts from Stack Overflow
or by Maulin
Published on 2010-04-04T15:58:52Z
Indexed on
2010/04/04
16:03 UTC
Read the original article
Hit count: 430
I have Ubuntu 9.04 Ruby 1.8 Rubygems 1.3.5
In irb,
irb(main):002:0> require 'rubygems'
=> true
In a script
./test.rb
./test.rb:2:in `require': no such file to load -- rubygems (LoadError)
from ./test.rb:2
I think it may have something to do with my PATH, but I am not sure how or what to fix.
© Stack Overflow or respective owner