Missing gem net-ssh.
I'm using Ubuntu 9.04 and all seems to install without error. When I try and run gl_tail it quits and informs me I need to install net-ssh with: sudo gem install -y net-ssh -r
I've done that a few times and it installs each time but still no such luck running gl_tail.
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.1
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /home/dave/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
I'm having the same problem on Ubuntu 9.10. Any thoughts?
Had the very same issue, solved by doing this:
sudo gem uninstall net-ssh
then do: sudo gem install net-ssh -v 1.1.4
mklebel's solution does not work for me. net-ssh installs well but, either with net-ssh 1.1 or 2.1 (Debian "lenny"), glTail crashes:
% ./bin/gl_tail config.yaml
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require': no such file to load -- net/ssh/gateway (LoadError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire'
from ./bin/../lib/gl_tail/sources/ssh.rb:1
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:inrequire'
from ./bin/../lib/gl_tail.rb:85
from ./bin/gl_tail:77:in `require'
from ./bin/gl_tail:77
Could you try installing rvm and managing the gems that way?
Fudge: I'm not a rubyist and I hesitate to install a lot of complicated Ruby-specifc things just to test a program.
sudo gem install rvm
rvm-install
rvm install 1.9.1
rvm 1.9.1
gem install <glTail dependencies>
When you're done, remove the rvm line from .bashrc, rm -rf ~/.rvm sudo gem uninstall rvm
and you should be pretty much back to where you were.
gem install rvm apparently went fine but that's all:
% rvm-install zsh: command not found: rvm-install
Gah.... Sorry then.
What OS/distribution is this on? Rubygems under Debian derivates is notoriously difficult to get running correctly.
running ubuntu 10.04 here, finally got it working, had same problems as above.
having a list of gems installed and paths helped: sudo gem list -d --local
1st i uninstalled other versions of net-ssh: (like mentioned above) sudo gem uninstall net-ssh
then installed net-ssh 1.1.4: sudo gem install -y net-ssh -v 1.1.4 -r
then i wound up having to install libopenssl-ruby1.8, used synaptic package manager for that :P
which helped! :D but wasn't enough.
once i did this last command though, all was working, thanks for the code Fudge!
sudo gem install net-ssh-gateway
hope it helps others
=]
After installing everything mentioned by the application, I fixed it by only doing sudo gem install net-ssh-gateway
I didn't use any specific version for anything, all the latest.