So, uh, where's my gem?

$ sudo gem install net-sftp
Successfully installed net-sftp-2.0.1
1 gem installed
Installing ri documentation for net-sftp-2.0.1…
Installing RDoc documentation for net-sftp-2.0.1…
$ irb -rubygems -rnet-sftp
gem_original_require': no such file to load -- net-sftp (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 31:inrequire’
from /usr/lib/ruby/1.8/irb/init.rb:252:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:250:ineach’
from /usr/lib/ruby/1.8/irb/init.rb:250:in load_modules' from /usr/lib/ruby/1.8/irb/init.rb:21:insetup’
from /usr/lib/ruby/1.8/irb.rb:54:in `start’
from /usr/bin/irb:13
$ ri net-sftp
Nothing known about net-sftp

Can anyone help me figure out where my gem wound up? I’ve confirmed
that gem and irb and ri are all pointing at the same Ruby install

On Mon, Dec 8, 2008 at 8:58 PM, Zeekar [email protected] wrote:

   from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules'

Try “require ‘net/sftp’”

On Dec 8, 2008, at 17:58 , Zeekar wrote:

$ irb -rubygems -rnet-sftp

-r is hardcoded, it can’t be overridden by rubygems. :frowning:

as Michael said, you need -e “require ‘net/sftp’; blahblah”