From: Simon Schuster Date: 2007-08-09T10:13:04+09:00 Subject: Re: a problem 'require'ing an update: I CAN require 'rubygems' if I start irb from the /usr/lib/ruby/1.8 directory, which is where I found rubygems.rb ... there's also this: irb(main):003:0> $: => ["/usr/local/lib/site_ruby/1.9", "/usr/local/lib/site_ruby/1.9/i486-linux", "/usr/local/lib/site_ruby/1.9/i386-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/1.9", "/usr/lib/ruby/1.9/i486-linux", "/usr/lib/ruby/1.9/i386-linux", "."] the "." being the only reason it found rubygems this time. so, that being the problem, I'm having a bit of a problem finding how can I change/add paths for irb/ruby/wherever that's configured. thanks! On 8/8/07, Simon Schuster wrote: > I've just noticed that that's probably the problem. but unfortunately, > > irb(main):001:0> require 'rubygems' > LoadError: no such file to load -- rubygems > > > On 8/8/07, Gordon Thiesfeld wrote: > > On Aug 8, 4:56 pm, "Simon Schuster" wrote: > > > successfully used gem to install the classifier library but I get this: > > > > > > irb(main):001:0> require 'classifier' > > > LoadError: no such file to load -- classifier > > > from (irb):1:in `require' > > > from (irb):1:in `Kernel#binding' > > > > > > maybe the configurations for irb/ruby (doesn't work in 1.8 or 1.9) > > > aren't aligned with where gem puts the libraries? thanks > > > > Did you require rubygems? > > > > >> require 'classifier' > > LoadError: no such file to load -- classifier > > from (irb):1:in `require' > > from (irb):1 > > >> require 'rubygems' > > => true > > >> require 'classifier' > > c:0:Warning: require_gem is obsolete. Use gem instead. > > Notice: for 10x faster LSI support, please install http://rb-gsl.rubyforge.org/ > > => true > > >> > > > > Gordon > > > > > > > >