From: Jano Svitok Date: 2007-06-25T23:30:11+09:00 Subject: Re: gems gone missing? On 6/25/07, Sharon Phillips wrote: > Hi, > > I've just spent the evening installing gruff (all the way from step > 1: install X11...), but now any ruby code I have that uses a gem > can't seem to find it. > > For example, > irb(main):001:0> require 'net-ssh' > LoadError: no such file to load -- net-ssh > from (irb):1:in `require' > from (irb):1 > > gem list lists all the gems I expect to be present, including gruff > and net-ssh (which is one I know was working beforehand) > > Only thing I can think of that may have contributed to this is > combining two .profile files into one, now ~/.profile (most of this > is new to me). Could the one I removed (contents moved to the new > one) have had a path to the gems, and Ruby doesn't read the new one? > > Any other ideas. I feel right stupid at the moment. > > Cheers, > Dave Check your $RUBYOPT setting, use -rubygems argument to ruby, or add 'require "rubygems" ' to the beginning of the file. J.