Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6

by tpreisinger (Initiate)
on Jan 23, 2012 at 18:36 UTC ( [id://949494]=note: print w/replies, xml ) Need Help??


in reply to Re: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6
in thread Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6

I’m just a developer on my system and I have to have the system administrator install Perl Modules for me. After spending the good part of the day trying to get it to work he has given up. The SFTP does function but it reports the error

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

He attempted to install the required modules but was not successful:

cpan> install Math::BigInt

CPAN: Storable loaded ok

Going to read /.cpan/Metadata

Database was generated on Fri, 20 Jan 2012 09:11:21 GMT

Math::BigInt is up to date.

cpan> install Math::Pari

Math::Pari is up to date.

He tried installing Math::GMP but got:

==========================================================

WARNING! No GMP libraries were detected!

Please see the INSTALL file.

===========================================================

The SFTP takes 50 seconds for it to deal with the fallback. This is unacceptable so I will have use a different method to implement SFTP or use the NET::FTP module. Googling this error I see it is very popular too bad the install can’t be made less complicated.

  • Comment on Re^2: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6

Replies are listed 'Best First'.
Re^3: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6
by Corion (Patriarch) on Jan 23, 2012 at 18:40 UTC

    It seems that GMP is a library external to Perl. Most likely, your system administrator would need to install that prerequisite as well. Usually, vendors provide precompiled packages of such libraries with the package manager of the OS.

Re^3: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6
by choroba (Cardinal) on Jan 23, 2012 at 18:38 UTC
    The GMP warning sounds like your system is missing header files for libgmp (aka the development package for libgmp).
Re^3: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6
by salva (Canon) on Mar 05, 2012 at 08:15 UTC

      I'm using cygwin and had the same problem. Yes it's an external library. I manage to get around this error after installing the Math library package called GMP. So for pure native Linux/Unix environment, it will need this RPM/DEB/Tarball installed.

      Description about gmp package: GMP is a free library for arbitrary precision arithmetic

        Need to install perl-Math-BigInt-GMP from the Fedora repository.
Re^3: Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /usr/lib/perl5/site_perl/5.8.8/Crypt/DH.pm line 6
by Anonymous Monk on Apr 04, 2013 at 18:45 UTC
    Did you find a solution to the error? I am facing the same issue - where SFTP functions, but I get the warning at the beginning of the script. Thanks!

      Did you find a solution to the error?

      Error says some library not installed, so the solution is to installing missing library

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found