From: Ken Bloom Date: 2008-10-21T01:38:59+09:00 Subject: Re: Gems (1.3.0) not visible from ruby (1.8.7) On Mon, 20 Oct 2008 09:49:04 -0500, Joni Niemi wrote: > Hi, > > I'm trying to sftp into another server using net-sftp, but the gems I > install are not visible to ruby interpreter. > > I've installed the net-sftp gem, and it shows fine in gem listing (see > below), but when I try to run a script, the library is not found (see > below). > > Any help would be highly appreciated! > > Cheers, Joni > -- > E.g. my script file begins with: > > require 'net/sftp' > >>gem list > > *** LOCAL GEMS *** > > builder (2.1.2) > linecache (0.43) > net-scp (1.0.1) > net-sftp (2.0.1) > net-ssh (2.0.4) > net-ssh-gateway (1.0.0) > net-ssh-multi (1.0.0) > ruby-debug-base (0.10.2, 0.10.0) > rubygems-update (1.3.0) > >>ruby myscript.rb > myscript.rb:1:in `require': no such file to load -- net/sftp (Loa > dError) > from myscript.rb:1 You need to require 'rubygems' first. --Ken -- Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/