Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing gem net-ssh. #2

Open
dclozier opened this issue Oct 6, 2009 · 10 comments
Open

Missing gem net-ssh. #2

dclozier opened this issue Oct 6, 2009 · 10 comments

Comments

@dclozier
Copy link

dclozier commented Oct 6, 2009

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:
@n8foo
Copy link

n8foo commented Feb 10, 2010

I'm having the same problem on Ubuntu 9.10. Any thoughts?

@mklebel
Copy link

mklebel commented Mar 26, 2010

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

@bortzmeyer
Copy link

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

@Fudge
Copy link
Owner

Fudge commented Jan 25, 2011

Could you try installing rvm and managing the gems that way?

@bortzmeyer
Copy link

Fudge: I'm not a rubyist and I hesitate to install a lot of complicated Ruby-specifc things just to test a program.

@Fudge
Copy link
Owner

Fudge commented Jan 25, 2011

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.

@bortzmeyer
Copy link

gem install rvm apparently went fine but that's all:

% rvm-install
zsh: command not found: rvm-install

@Fudge
Copy link
Owner

Fudge commented Jan 25, 2011

Gah.... Sorry then.

What OS/distribution is this on? Rubygems under Debian derivates is notoriously difficult to get running correctly.

@idk
Copy link

idk commented Feb 1, 2011

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

=]

@SignalWhisperer
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants