Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Net::SSH::Perl install challenge

by wjw (Priest)
on May 02, 2014 at 16:50 UTC ( [id://1084808]=perlquestion: print w/replies, xml ) Need Help??

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

Tried installing said module using cpanm Net::SSH::Perl to no avail. Got to Math::GMP and bailed out. Am using PerlBrew on Linux with Perl 5.19. Amazingly, I have never had this happen before. The resultant log file shows of a subsequent install attempt of Math::GMP yielded the following my question which is:
where would I expect to find gmp.h, and why would it not be there?

(I have not done the --force yet as it does not seem to me like one should have to)

Thanks for any enlightenment..

cpanm (App::cpanminus) 1.7001 on perl 5.019010 built for x86_64-linux Work directory is /home/wjw/.cpanm/work/1399045680.9633 You have make /usr/bin/make You have LWP 6.06 You have /bin/tar: tar (GNU tar) 1.26 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp +l.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching Math::GMP on cpanmetadb ... --> Working on Math::GMP Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/Math-GMP-2.07.ta +r.gz -> OK Unpacking Math-GMP-2.07.tar.gz Entering Math-GMP-2.07 Checking configure dependencies from META.yml Configuring Math-GMP-2.07 Running Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Math::GMP Writing MYMETA.yml and MYMETA.json -> OK Checking dependencies from MYMETA.json ... Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.98) Building and testing Math-GMP-2.07 cp lib/Math/GMP.pm blib/lib/Math/GMP.pm AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP) Running Mkbootstrap for Math::GMP () chmod 644 GMP.bs /home/wjw/perl5/perlbrew/perls/perl-5.19.10/bin/perl5.19.10 /home/wjw/ +perl5/perlbrew/perls/perl-5.19.10/lib/5.19.10/ExtUtils/xsubpp -typem +ap /home/wjw/perl5/perlbrew/perls/perl-5.19.10/lib/5.19.10/ExtUtils/t +ypemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c cc -c -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/incl +ude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.07 +\" -DXS_VERSION=\"2.07\" -fPIC "-I/home/wjw/perl5/perlbrew/perls/perl +-5.19.10/lib/5.19.10/x86_64-linux/CORE" GMP.c GMP.xs:4:17: fatal error: gmp.h: No such file or directory compilation terminated. make: *** [GMP.o] Error 1 -> FAIL Installing Math::GMP failed. See /home/wjw/.cpanm/work/1399045 +680.9633/build.log for details. Retry with --force to force install it.
...the majority is always wrong, and always the last to know about it...
Insanity: Doing the same thing over and over again and expecting different results...

Replies are listed 'Best First'.
Re: Net::SSH::Perl install challenge
by socketdave (Curate) on May 02, 2014 at 18:01 UTC
    You need to install libgmp. Most distros should have it in package management (apt-get install libgmp-dev, etc.)
      Thanks! I should have thought of that! ...tunnel vision...

      Appreciate the quick response.

      ...the majority is always wrong, and always the last to know about it...
      Insanity: Doing the same thing over and over again and expecting different results...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found