Math-GMP - problems with install math::gmp

Posted on Thu Oct 18 03:21:31 2007 by mmccaws
problems with install math::gmp
I downloaded the GMP library. built it on the default cc compiler using
./configure make make check make install
When i run sudo perl -MCPAN -e shell then install Math::GMP how do I point the directory where to find the libraries? which are here, find / -name gmp.h -print / /usr/local/include/gmp.h I get the follow show stopping output
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 /opt/perl/lib/5.8.3/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.3/ExtUtils/ty +pemap -typemap typemap GMP.xs > GMP.xsc && mv GMP.xsc GMP.c cc -c -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings - +DNO_HASH_SEED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fast +DSitanium2 +Ofltacc=strict -DVE +RSION=\"2.04\" -DXS_VERSION=\"2.04\" +Z "-I/opt/perl/lib/5.8.3/IA64.ARCHREV_0-thread-multi/CORE" + GMP.c (Bundled) cc: warning 922: "-Ae" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 922: "-fast" is unsupported in the bundled compiler, ignored. (Bundled) cc: warning 922: "+Ofltacc=strict" is unsupported in the bundled compiler, ignored. Warning 267: "/usr/include/sys/socket.h", line 535 # Inconsistent linkage in declarations of "long +long sendfile(int,int,long long,unsigned long long,const iovec *,int)"; previously was extern now is + declared static. static sbsize_t sendfile __((int, int, off_t, bsize_t, const struct iovec *, int ^^^^^^^^ Warning 267: "/usr/include/sys/socket.h", line 536 # Inconsistent linkage in declarations of "long +long sendpath(int,char *,long long,unsigned long long,const iovec *,int)"; previously was extern now + is declared static. static sbsize_t sendpath __((int, char *, off_t, bsize_t, const struct iovec *, ^^^^^^^^ Error 112: "GMP.xs", line 4 # Include file "gmp.h" not found. #include "gmp.h" ^^^^^^^ Warning 612: "GMP.xs", line 49 # Label 'not_there' has no uses. not_there: ^^^^^^^^^^ Error 172: "GMP.c", line 91 # Undeclared variable 'mpz_t'. mpz_t * RETVAL; ^^^^^ Error 172: "GMP.xs", line 69 # Undeclared variable 'RETVAL'. RETVAL = malloc (sizeof(mpz_t)); ^^^^^^ Error 172: "GMP.xs", line 70 # Undeclared variable 'RETVAL'. mpz_init_set_str(*RETVAL, s, 0); ^^^^^^ Error 172: "GMP.c", line 97 # Undeclared variable 'RETVAL'. sv_setref_pv(ST(0), "Math::GMP", (void*)RETVAL); ^^^^^^^^^^^^ Error 172: "GMP.c", line 111 # Undeclared variable 'mpz_t'. mpz_t * RETVAL; ^^^^^ Error 172: "GMP.xs", line 80 # Undeclared variable 'RETVAL'. RETVAL = malloc (sizeof(mpz_t)); ^^^^^^ Error 172: "GMP.xs", line 81 # Undeclared variable 'RETVAL'. mpz_init_set_str(*RETVAL, s, b); ^^^^^^ Error 172: "GMP.c", line 117 # Undeclared variable 'RETVAL'. sv_setref_pv(ST(0), "Math::GMP", (void*)RETVAL); ^^^^^^^^^^^^ Error 172: "GMP.c", line 129 # Undeclared variable 'mpz_t'. mpz_t * n; ^^^^^ Error 419: "GMP.c", line 133 # 'mpz_t' is used as a type, but has not been defined as a type. n = (mpz_t *) tmp; ^^^^^ Error 172: "GMP.c", line 133 # Undeclared variable 'n'. n = (mpz_t *) tmp; ^ Error 699: "GMP.c", line 133 # Error limit reached; halting compilation. n = (mpz_t *) tmp; ^ *** Error exit code 2
Write a response