i have installed mechanize from a gem:
sudo gem install mechanize
and it went OK, as far as i am concerned.
However, when i am trying to run any example from the mechanize RDoc, i
am getting the following error:
LoadError: no such file to load – mechanize
my $: is
and i have looked up mechanize manually, it’s in
i.e. not in $:
Where is the problem? Should not this be automatic? (i.e. that if you
install a gem, it is installed to a place which is in $:, or the $: is
updated to contain the installed gem path (/usr/lib/ruby/gems/1.8/gems/
in my case)?
Or i am doing something terribly wrong?