Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Problems in Net::SSH

by zentara (Archbishop)
on Jan 29, 2008 at 23:17 UTC ( #665031=note: print w/replies, xml ) Need Help??


in reply to Problems in Net::SSH

couldn't load specified math lib(s)

I don't use windows, but since no one else replied, I will edu-guess it's the old "library-version-binary-mismatch". In C (C++), in both linux and windows, the libraries need to be compiled so that they match. In linux, it is a small problem, because we have a free c compiler, so when we compile a module, it will be compatibility matched for our OS level, and basic c libraries. If on linux, you try to install a binary(pre-compiled) library, for a certain GLibc level, and the GLibc levels don't match with your particular OS, we get the same error.

So on windows, you need to look at the version of windows that you are using, the version of ActiveStatePerl installed( assuming you use it), and the version of the module you downloaded. Usually, if you read the README files very carefully, they will say what versions of windows, and windows-based-perl are compatible. Also you must look at the compatibility of the pre-requisite libs that Net::SSH needs.

Goodluck.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Problems in Net::SSH
by syphilis (Archbishop) on Jan 30, 2008 at 07:05 UTC
    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
      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://665031]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-09-27 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?