require rubygems works in irb but not in script
- by Maulin
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.