Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Problems in Net::SSH

by syphilis (Archbishop)
on Jan 30, 2008 at 07:05 UTC ( [id://665076]=note: print w/replies, xml ) Need Help??


in reply to Re: Problems in Net::SSH
in thread Problems in Net::SSH

I will edu-guess it's the old "library-version-binary-mismatch"

No - the message is merely a response to an attempt to use (I think) Math::BigInt::GMP or (if that fails) Math::BigInt::Pari or (if that fails) Math::BigInt::BitVector. When those libs are unavailable, you get the messages that the OP quoted, and the pure-perl (slow) Math::BigInt is used instead. Nothing there that's going to cause any problems (except for speed of processing).

I don't know if anyone here is interested in helping with Net::SSH::W32Perl - I know I'm definitely *not*. I have had some success on Windows with Net::SSH2 (available as a ppm from the uwinnipeg repository). Unfortunately, it too is less than ideal as there are some bugs with it on Windows - though I've so far managed to find workarounds for those bugs (in so far as they affect me). If cristianekw likes to give it a go, and has trouble, I'll try to help out.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: Problems in Net::SSH
by cristianekw (Novice) on Jan 30, 2008 at 10:47 UTC
    No - the message is merely a response to an attempt to use (I think) Math::BigInt::GMP or (if that fails) Math::BigInt::Pari or (if that fails) Math::BigInt::BitVector. When those libs are unavailable, you get the messages that the OP quoted, and the pure-perl (slow) Math::BigInt is used instead. Nothing there that's going to cause any problems (except for speed of processing).

    I re-installed these three libraries and then the login worked :)
    How did you know the libraries?
    Thanks!
      I re-installed these three libraries and then the login worked

      So much for my assertion that there's "Nothing there that's going to cause any problems (except for speed of processing)". Perhaps, with pure perl, things are so slow that a timeout was occurring.

      IIRC, the code that tries to load those modules goes something like:
      use Math::BigInt lib => 'GMP Pari BitVector';
      which tries to load the respective modules in that order. It's therefore unnecessary to install all three, as the first one that gets found is the one that will be used. If the first one that's specified is found, then there will be no warnings issued about the others if they are absent. (And, as already stated, if none are found, then the pure perl Math::BigInt is used.) GMP and Pari are significantly faster than BitVector, and therefore preferable.

      How did you know the libraries?

      I remember from a few years back that there were GMP, Pari and Bit::Vector plug-ins available for Math::BigInt. (Actually ... I don't see Math::BigInt::BitVector on CPAN any more. Was I right about it ?)

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://665076]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found