net/ssh and ruby 1.9.1

R

rpardee

Hey All,

I'm trying to use net/ssh under ruby 1.9.1p243 (2009-07-16 revision
24175) [i386-mingw32]. When I try to do a simple "require 'net/ssh'"
I get the below stack trace (uninitialized constant DL::Importable
(NameError)).

Asking on the rubyinstaller group I'm told that net/ssh needs to be
updated to use the new DL library. But looking at the project home
page (http://rubyforge.org/projects/net-ssh/) it looks like the last
word is a "Farewell" from Jamis Buck.

If that's orphaned & not compatible w/1.9.1, I guess I'm out of luck?
Have to use 1.8.x?

Thanks!

-Roy

c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/ssh/
authentication/pageant.rb:24:in `<module:Win>': uninitialized constant
DL::Importable (NameError)
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/pageant.rb:23:in `<module:pageant>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/pageant.rb:15:in `<module:Authentication>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/pageant.rb:6:in `<module:SSH>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/pageant.rb:6:in `<module:Net>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/pageant.rb:6:in `<top (required)>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/agent.rb:6:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/agent.rb:6:in `<top (required)>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/key_manager.rb:4:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/key_manager.rb:4:in `<top (required)>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/session.rb:4:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh/authentication/session.rb:4:in `<top (required)>'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh.rb:11:in `require'
from c:/ruby19/lib/ruby/gems/1.9.1/gems/net-ssh-2.0.16/lib/net/
ssh.rb:11:in `<top (required)>'
from globals.rb:1:in `require'
from globals.rb:1:in `<main>'
 
J

John W Higgins

[Note: parts of this message were removed to make it a legal post.]

Afternoon,

Hey All,

I'm trying to use net/ssh under ruby 1.9.1p243 (2009-07-16 revision
24175) [i386-mingw32]. When I try to do a simple "require 'net/ssh'"
I get the below stack trace (uninitialized constant DL::Importable
(NameError)).
You are using a fairly old version - 2.0.21 is the current version and it
looks like this issue was addressed with 2.0.17 - see
http://net-ssh.lighthouseapp.com/pr...3-doesnt-work-with-ruby-19-windows#ticket-3-8

Try gem update or gem install net-ssh to get the latest version from
gemcutter/rubygems

John
 
R

Roger Pack

Hey All,

I'm trying to use net/ssh under ruby 1.9.1p243 (2009-07-16 revision
24175) [i386-mingw32]. When I try to do a simple "require 'net/ssh'"
I get the below stack trace (uninitialized constant DL::Importable
(NameError)).

Asking on the rubyinstaller group I'm told that net/ssh needs to be
updated to use the new DL library. But looking at the project home
page (http://rubyforge.org/projects/net-ssh/) it looks like the last
word is a "Farewell" from Jamis Buck.

Looks like I got it once and got around it by doing an
“update your rubyzip and net-ssh gemsâ€

http://betterlogic.com/roger/?p=2478



C:\dev\ruby>ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

C:\dev\ruby>gem install net-ssh
cleared faster_require caches due to new gem install...
Successfully installed net-ssh-2.0.21
1 gem installed

C:\dev\ruby>irb
irb(main):001:0> require 'net/ssh'
=> true

-rp

-rp
 
R

rpardee

Thanks guys--updating to 2.0.21 did the trick. I'm not sure how I
wound up w/the old version in the first place (old rubygems install w/
a bum 'sources' list maybe?) but all is well now.

Thanks!

-Roy

I'm trying to use net/ssh under ruby 1.9.1p243 (2009-07-16 revision
24175) [i386-mingw32].  When I try to do a simple "require 'net/ssh'"
I get the below stack trace (uninitialized constant DL::Importable
(NameError)).
Asking on the rubyinstaller group I'm told that net/ssh needs to be
updated to use the new DL library.  But looking at the project home
page (http://rubyforge.org/projects/net-ssh/) it looks like the last
word is a "Farewell" from Jamis Buck.

Looks like I got it once and got around it by doing an
“update your rubyzip and net-ssh gems”

http://betterlogic.com/roger/?p=2478

C:\dev\ruby>ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]

C:\dev\ruby>gem install net-ssh
cleared faster_require caches due to new gem install...
Successfully installed net-ssh-2.0.21
1 gem installed

C:\dev\ruby>irb
irb(main):001:0> require 'net/ssh'
=> true

-rp

-rp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top