Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Can't install Math::BigInt::GMP

by finfan (Acolyte)
on Mar 22, 2013 at 19:25 UTC ( #1024970=perlquestion: print w/ replies, xml ) Need Help??
finfan has asked for the wisdom of the Perl Monks concerning the following question:

I want to install this package so that Net::SSH::Expect runs faster. It take 30+ seconds per command right now. However, when I try to cpan install it, I get this....

CPAN.pm: Going to build P/PJ/PJACKLAM/Math-BigInt-GMP-1.37.tar.gz Can't link/include 'gmp.h', 'gmp' No 'Makefile' created PJACKLAM/Math-BigInt-GMP-1.37.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK

Similar results trying to compile the package manually.

Thanks in advance.

Comment on Can't install Math::BigInt::GMP
Download Code
Re: Can't install Math::BigInt::GMP
by kschwab (Priest) on Mar 22, 2013 at 19:40 UTC
    It's saying it can't find the header file and library from the GNU MP library. From the readme: "You need to install the Gnu MP library aka libgmp to compile this module."
      I have installed gmp-4.3.1-7.el6_2.2.x86_64. Is that not the correct package?
        Sounds, right, but I looked up the package, and I don't see the C header file gmp.h listed in the contents. You could either install from source, or try and figure out where your distribution stowed away the header file.

        depending on the OS/package management you'll need to install the -dev/-devel package

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1024970]
Approved by marto
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-12-28 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (181 votes), past polls