Hi All,
I am very new to Linux and PERL (n00b). I have been trying to install the NET::SSH::Perl module w
+hich apparently has millions of dependancies. One of which is Math GMP. When I try to insall it I
+get this result. Can anyone tell me how to fix this?! PLEASE!
cpan[1]> install Math::GMP
+
+
CPAN: Storable loaded ok (v2.12)
Going to read '/root/.cpan/Metadata'
Database was generated on Thu, 07 Jan 2010 08:53:33 GMT
Running install for module 'Math::GMP'
CPAN: YAML loaded ok (v0.71)
Running make for T/TU/TURNSTEP/Math-GMP-2.06.tar.gz
CPAN: Digest::SHA loaded ok (v5.48)
CPAN: Compress::Zlib loaded ok (v2.023)
Checksum for /root/.cpan/sources/authors/id/T/TU/TURNSTEP/Math-GMP-2.06.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN: Archive::Tar loaded ok (v1.54)
Math-GMP-2.06/
Math-GMP-2.06/.perlcriticrc
Math-GMP-2.06/README
Math-GMP-2.06/Changes
Math-GMP-2.06/Makefile.PL
Math-GMP-2.06/GMP.xs
Math-GMP-2.06/t/
Math-GMP-2.06/t/01_gmppm.t
Math-GMP-2.06/t/99_yaml.t
Math-GMP-2.06/t/00_signature.t
Math-GMP-2.06/t/99_pod.t
Math-GMP-2.06/t/99_spellcheck.t
Math-GMP-2.06/t/99_perlcritic.t
Math-GMP-2.06/INSTALL
Math-GMP-2.06/META.yml
Math-GMP-2.06/lib/
Math-GMP-2.06/lib/Math/
Math-GMP-2.06/lib/Math/GMP.pm
Math-GMP-2.06/MANIFEST
Math-GMP-2.06/SIGNATURE
Math-GMP-2.06/typemap
Math-GMP-2.06/MANIFEST.SKIP
Math-GMP-2.06/COPYING.LIB
Math-GMP-2.06/LICENSE
CPAN: File::Temp loaded ok (v0.22)
CPAN.pm: Going to build T/TU/TURNSTEP/Math-GMP-2.06.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for Math::GMP
cp lib/Math/GMP.pm blib/lib/Math/GMP.pm
AutoSplitting blib/lib/Math/GMP.pm (blib/lib/auto/Math/GMP)
/usr/bin/perl /usr/local/share/perl/5.8.4/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/ty
+pemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/i
+nclude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"2.06\" -DXS_VERSION=\"2.06\" -
+fPc
GMP.xs:4:17: gmp.h: No such file or directory
GMP.c: In function `XS_Math__GMP_new_from_scalar':
GMP.c:153: error: `mpz_t' undeclared (first use in this function)
GMP.c:153: error: (Each undeclared identifier is reported only once
GMP.c:153: error: for each function it appears in.)
GMP.c:153: error: `RETVAL' undeclared (first use in this function)
GMP.c: In function `XS_Math__GMP_new_from_scalar_with_base':
GMP.c:178: error: `mpz_t' undeclared (first use in this function)
GMP.c:178: error: `RETVAL' undeclared (first use in this function)
GMP.c: In function `XS_Math__GMP_destroy':
GMP.c:201: error: `mpz_t' undeclared (first use in this function)
GMP.c:201: error: `n' undeclared (first use in this function)
GMP.c:205: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_stringify_gmp':
GMP.c:229: error: `mpz_t' undeclared (first use in this function)
GMP.c:229: error: `n' undeclared (first use in this function)
GMP.c:238: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_get_str_gmp':
GMP.c:270: error: `mpz_t' undeclared (first use in this function)
GMP.c:270: error: `n' undeclared (first use in this function)
GMP.c:280: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_sizeinbase_gmp':
GMP.c:312: error: `mpz_t' undeclared (first use in this function)
GMP.c:312: error: `n' undeclared (first use in this function)
GMP.c:319: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_uintify_gmp':
GMP.c:343: error: `mpz_t' undeclared (first use in this function)
GMP.c:343: error: `n' undeclared (first use in this function)
GMP.c:349: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_add_ui_gmp':
GMP.c:373: error: `mpz_t' undeclared (first use in this function)
GMP.c:373: error: `n' undeclared (first use in this function)
GMP.c:378: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_intify_gmp':
GMP.c:401: error: `mpz_t' undeclared (first use in this function)
GMP.c:401: error: `n' undeclared (first use in this function)
GMP.c:407: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_mul_2exp_gmp':
GMP.c:431: error: `mpz_t' undeclared (first use in this function)
GMP.c:431: error: `n' undeclared (first use in this function)
GMP.c:433: error: `RETVAL' undeclared (first use in this function)
GMP.c:437: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_div_2exp_gmp':
GMP.c:464: error: `mpz_t' undeclared (first use in this function)
GMP.c:464: error: `n' undeclared (first use in this function)
GMP.c:466: error: `RETVAL' undeclared (first use in this function)
GMP.c:470: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_powm_gmp':
GMP.c:497: error: `mpz_t' undeclared (first use in this function)
GMP.c:497: error: `n' undeclared (first use in this function)
GMP.c:499: error: `mod' undeclared (first use in this function)
GMP.c:500: error: `RETVAL' undeclared (first use in this function)
GMP.c:504: error: syntax error before ')' token
GMP.c:511: error: syntax error before ')' token
GMP.c:518: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_mmod_gmp':
GMP.c:545: error: `mpz_t' undeclared (first use in this function)
GMP.c:545: error: `a' undeclared (first use in this function)
GMP.c:546: error: `b' undeclared (first use in this function)
GMP.c:547: error: `RETVAL' undeclared (first use in this function)
GMP.c:551: error: syntax error before ')' token
GMP.c:558: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_mod_2exp_gmp':
GMP.c:585: error: `mpz_t' undeclared (first use in this function)
GMP.c:585: error: `in' undeclared (first use in this function)
GMP.c:587: error: `RETVAL' undeclared (first use in this function)
GMP.c:591: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_add_two':
GMP.c:618: error: `mpz_t' undeclared (first use in this function)
GMP.c:618: error: `m' undeclared (first use in this function)
GMP.c:619: error: `n' undeclared (first use in this function)
GMP.c:620: error: `RETVAL' undeclared (first use in this function)
GMP.c:624: error: syntax error before ')' token
GMP.c:631: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_sub_two':
GMP.c:658: error: `mpz_t' undeclared (first use in this function)
GMP.c:658: error: `m' undeclared (first use in this function)
GMP.c:659: error: `n' undeclared (first use in this function)
GMP.c:660: error: `RETVAL' undeclared (first use in this function)
GMP.c:664: error: syntax error before ')' token
GMP.c:671: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_mul_two':
GMP.c:698: error: `mpz_t' undeclared (first use in this function)
GMP.c:698: error: `m' undeclared (first use in this function)
GMP.c:699: error: `n' undeclared (first use in this function)
GMP.c:700: error: `RETVAL' undeclared (first use in this function)
GMP.c:704: error: syntax error before ')' token
GMP.c:711: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_div_two':
GMP.c:738: error: `mpz_t' undeclared (first use in this function)
GMP.c:738: error: `m' undeclared (first use in this function)
GMP.c:739: error: `n' undeclared (first use in this function)
GMP.c:740: error: `RETVAL' undeclared (first use in this function)
GMP.c:744: error: syntax error before ')' token
GMP.c:751: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_bdiv_two':
GMP.c:780: error: `mpz_t' undeclared (first use in this function)
GMP.c:780: error: `m' undeclared (first use in this function)
GMP.c:781: error: `n' undeclared (first use in this function)
GMP.xs:293: error: `quo' undeclared (first use in this function)
GMP.xs:294: error: `rem' undeclared (first use in this function)
GMP.c:789: error: syntax error before ')' token
GMP.c:796: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_mod_two':
GMP.c:827: error: `mpz_t' undeclared (first use in this function)
GMP.c:827: error: `m' undeclared (first use in this function)
GMP.c:828: error: `n' undeclared (first use in this function)
GMP.c:829: error: `RETVAL' undeclared (first use in this function)
GMP.c:833: error: syntax error before ')' token
GMP.c:840: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_cmp_two':
GMP.c:867: error: `mpz_t' undeclared (first use in this function)
GMP.c:867: error: `m' undeclared (first use in this function)
GMP.c:868: error: `n' undeclared (first use in this function)
GMP.c:874: error: syntax error before ')' token
GMP.c:881: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_legendre':
GMP.c:905: error: `mpz_t' undeclared (first use in this function)
GMP.c:905: error: `m' undeclared (first use in this function)
GMP.c:906: error: `n' undeclared (first use in this function)
GMP.c:912: error: syntax error before ')' token
GMP.c:919: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_jacobi':
GMP.c:943: error: `mpz_t' undeclared (first use in this function)
GMP.c:943: error: `m' undeclared (first use in this function)
GMP.c:944: error: `n' undeclared (first use in this function)
GMP.c:950: error: syntax error before ')' token
GMP.c:957: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_probab_prime':
GMP.c:981: error: `mpz_t' undeclared (first use in this function)
GMP.c:981: error: `m' undeclared (first use in this function)
GMP.c:988: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_pow_two':
GMP.c:1012: error: `mpz_t' undeclared (first use in this function)
GMP.c:1012: error: `m' undeclared (first use in this function)
GMP.c:1014: error: `RETVAL' undeclared (first use in this function)
GMP.c:1018: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gcd_two':
GMP.c:1046: error: `mpz_t' undeclared (first use in this function)
GMP.c:1046: error: `m' undeclared (first use in this function)
GMP.c:1047: error: `n' undeclared (first use in this function)
GMP.c:1048: error: `RETVAL' undeclared (first use in this function)
GMP.c:1052: error: syntax error before ')' token
GMP.c:1059: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_fib':
GMP.c:1087: error: `mpz_t' undeclared (first use in this function)
GMP.c:1087: error: `RETVAL' undeclared (first use in this function)
GMP.c: In function `XS_Math__GMP_and_two':
GMP.c:1111: error: `mpz_t' undeclared (first use in this function)
GMP.c:1111: error: `m' undeclared (first use in this function)
GMP.c:1112: error: `n' undeclared (first use in this function)
GMP.c:1113: error: `RETVAL' undeclared (first use in this function)
GMP.c:1117: error: syntax error before ')' token
GMP.c:1124: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_xor_two':
GMP.c:1151: error: `mpz_t' undeclared (first use in this function)
GMP.c:1151: error: `m' undeclared (first use in this function)
GMP.c:1152: error: `n' undeclared (first use in this function)
GMP.c:1153: error: `RETVAL' undeclared (first use in this function)
GMP.c:1157: error: syntax error before ')' token
GMP.c:1164: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_or_two':
GMP.c:1191: error: `mpz_t' undeclared (first use in this function)
GMP.c:1191: error: `m' undeclared (first use in this function)
GMP.c:1192: error: `n' undeclared (first use in this function)
GMP.c:1193: error: `RETVAL' undeclared (first use in this function)
GMP.c:1197: error: syntax error before ')' token
GMP.c:1204: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_fac':
GMP.c:1232: error: `mpz_t' undeclared (first use in this function)
GMP.c:1232: error: `RETVAL' undeclared (first use in this function)
GMP.c: In function `XS_Math__GMP_gmp_copy':
GMP.c:1256: error: `mpz_t' undeclared (first use in this function)
GMP.c:1256: error: `m' undeclared (first use in this function)
GMP.c:1257: error: `RETVAL' undeclared (first use in this function)
GMP.c:1261: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_tstbit':
GMP.c:1287: error: `mpz_t' undeclared (first use in this function)
GMP.c:1287: error: `m' undeclared (first use in this function)
GMP.c:1294: error: syntax error before ')' token
GMP.c: In function `XS_Math__GMP_gmp_sqrt':
GMP.c:1318: error: `mpz_t' undeclared (first use in this function)
GMP.c:1318: error: `m' undeclared (first use in this function)
GMP.c:1319: error: `RETVAL' undeclared (first use in this function)
GMP.c:1323: error: syntax error before ')' token
make: *** [GMP.o] Error 1
TURNSTEP/Math-GMP-2.06.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
TURNSTEP/Math-GMP-2.06.tar.gz : make NO
cpan[2]
+
+
Caught SIGINT, trying to continue
cpan[2] exit
exit
Lockfile removed.
medics:/var/tmp# find / -name TURNSTEP
medics:/var/tmp# find / -name *TURNSTEP*
/home/mmeola/.cpan/sources/authors/id/T/TU/TURNSTEP
/root/.cpan/sources/authors/id/T/TU/TURNSTEP
medics:/var/tmp#