2007fld has asked for the wisdom of the Perl Monks concerning the following question:

I have installed gp/pari and Math::Pari suceessfully. But when I'm tring to install Net::SSH::Perl, I got the following error:

Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::FastCalc at /usr/lib/perl5/site_perl/5.10.0/Crypt/DH.pm line 6

I only need to use ssh2, so I think I just need Pari and Math::Pari, no need for GMP etc., right? I have updated the LD_LIBRARY_PATH with the libary's path, still not luck.

I even edited the DH.pm file, so it only looks for Pari, still not luck.

I'm stuck. Please help and thanks a lot!

  • Comment on Math libary issue when install Net::SSH::Perl

Replies are listed 'Best First'.
Re: Math libary issue when install Net::SSH::Perl
by salva (Canon) on Dec 10, 2010 at 22:22 UTC
Re: Math libary issue when install Net::SSH::Perl
by syphilis (Archbishop) on Dec 11, 2010 at 02:08 UTC
    I even edited the DH.pm file, so it only looks for Pari, still not luck

    I think you'll also need to install Math-BigInt-Pari for that to work as intended. (It should be easy enough to build and install if you already have Math::Pari.)

    Note that the message you referred to in your post is just an "fyi", not an error. However, without the Pari or GMP support, Net::SSH::Perl will be very slow.
    Note also the advice already given by salva in this thread - imo, it's sound advice.

    Cheers,
    Rob
Re: Math libary issue when install Net::SSH::Perl
by Khen1950fx (Canon) on Dec 10, 2010 at 22:31 UTC
    You need Math::GMP. Make sure that you have all the dependencies installed.
Re: Math libary issue when install Net::SSH::Perl
by Monkomatic (Sexton) on Dec 11, 2010 at 20:48 UTC

    Have you tried CPAN? is pretty good at installing dependencies but sometimes it has a tendency to get confused if alot of them are involved.

    You might want to try PPM if using activestate. It seems to be much more reliable.

    I seem to remember having exactly the same problem running the exact same dependency Math::BigInt: PPM worked on it for me.