# Net/ssh and ruby 1.9.1

**URL:** <https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970>\
**Category:** Ruby\
**Created:** [March 29, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970 "2010-03-29T22:20:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970/1 "2010-03-29T22:20:24Z")

</div>

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/](http://rubyforge.org/projects/net-ssh/)) it looks like the last  
word is a “Farewell” from Jamis B…

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 `’

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970/2 "2010-03-29T22:35:38Z")

</div>

Afternoon,

On Mon, Mar 29, 2010 at 1:20 PM, removed\_email\_address@domain.invalid  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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](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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 29, 2010, 10:40pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970/3 "2010-03-29T22:40:05Z")

</div>

removed\_email\_address@domain.invalid 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/](http://rubyforge.org/projects/net-ssh/)) it looks like the last  
> word is a “Farewell” from Jamis B…

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](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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 30, 2010, 8:29pm UTC](https://www.ruby-forum.com/t/net-ssh-and-ruby-1-9-1/185970/4 "2010-03-30T20:29:24Z")

</div>

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
