gem net-sftp not found after install

14 views
Skip to first unread message

Brian Will

unread,
Oct 24, 2009, 5:49:11 PM10/24/09
to Panda
I can't get the gem net-sftp to work on ec2:

su
gem install net-sftp
irb
require 'net/sftp'
# ...error
cd /var/local/www/panda
merb -i
require 'net/sftp'
# ...error

When I do this on my Windows machine, it works, but when I do it in my
Ubuntu VM, I get the same problem. The trouble, I'm guessing, is that
there are multiple installs of Ruby, and so the gem is being installed
to the wrong one. I've tried to find the locations for the gem repos
using 'whereis ruby', but installing the gem to each of the locations
explicitly didn't work.

I don't know my way around Ruby, so I'd really appreciate any advice.

--Brian Will

Brian Will

unread,
Oct 24, 2009, 7:39:05 PM10/24/09
to Panda
Hmm, OK, now that I've manually installed gem echoe:

gem install echoe
merb -i
require 'net/sftp'

It works. Guess the gem was broken and didn't install all the
dependencies it needed.
Reply all
Reply to author
Forward
0 new messages