From: Vladsialv Tchernev Date: 2006-04-13T01:57:33+09:00 Subject: Re: Using gems problem -- LoadError Thank you Austin .. that was it.. I was using wrong libraries names Cheers Vlad On Wednesday 12 April 2006 11:06 am, Austin Ziegler wrote: > On 4/12/06, Vladsialv Tchernev wrote: > > Hello all, > > I am a newbie with ruby and gems and I have this frustrating problem not > > being able to load any gem I install. I am running Ubuntu 5.10 and I have > > just installed ruby1.8 deb (1.8.4) and have compiled rubygems-0.8.11 > > without any problem. I am able to load rubygems (require 'rubygems') and > > I setup RUBYOPT var as advised in gems doc (export RUBYOPT=rubygems). > > However, when I try to load a gem ($ruby1.8 -e "require 'some_gem' ") I > > always get an error (This is for xml-simple gem: > > Try "require 'xml/simple'". One has to require the libraries that are > represented in the gem, not the gem itself. > > With some gems, you can autorequire the code by requiring_gem-ing the > gem, but this functionality may ultimately go away and it is dependent > on each gem. > > The xml-simple gem documentation should indicate what you must include. > > -austin > -- > Austin Ziegler * halostatue@gmail.com > * Alternate: austin@halostatue.ca