Net/ssh and ruby 1.9.1

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>'

Afternoon,

···

On Mon, Mar 29, 2010 at 1:20 PM, rpardee@gmail.com <rpardee@gmail.com>wrote:

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/projects/36253/tickets/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

rpardee@gmail.com wrote:

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

···

--
Posted via http://www.ruby-forum.com/\.

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

···

On Mar 29, 1:40 pm, Roger Pack <rogerpack2...@gmail.com> wrote:

rpar...@gmail.com wrote:
> 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
--
Posted viahttp://www.ruby-forum.com/.