Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.

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.
        i had to install the devel package gmp-devel.x86_64.

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 drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2018-08-21 01:51 GMT
Find Nodes?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:

    Results (197 votes). Check out past polls.