Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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.... 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
Replies are listed 'Best First'.
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?

        depending on the OS/package management you'll need to install the -dev/-devel 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2015-12-01 07:53 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (795 votes), past polls