jkeenan1 has asked for the wisdom of the Perl Monks concerning the following question:
CPAN.pm: Going to build C/CH/CHIPT/Math-GMP-2.04.tar.gz Checking if your kit is complete... Looks good ----> Note (probably harmless): No library found for -lgmp Writing Makefile for Math::GMP
This has to be one of the most misleading messages I've ever seen. In each case it signified the absence of the 'libgmp3' library. The 'cpan' process continued as follows:
GMP.xs:4:17: gmp.h: No such file or directory GMP.c: In function `XS_Math__GMP_new_from_scalar': GMP.c:99: error: `mpz_t' undeclared (first use in this function) GMP.c:99: error: (Each undeclared identifier is reported only once GMP.c:99: error: for each function it appears in.) GMP.c:99: error: `RETVAL' undeclared (first use in this function) GMP.c: In function `XS_Math__GMP_new_from_scalar_with_base': GMP.c:121: error: `mpz_t' undeclared (first use in this function) GMP.c:121: error: `RETVAL' undeclared (first use in this function) [snip 100+ more lines of error messages] make: *** [GMP.o] Error 1 /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: CHIPT/Math-GMP-2.04.tar.gz : make NO
In the case of Ubuntu Linux, I was able to proceed once I had installed the Debian libgmp3-dev library.
There being no equivalent library that I knew of for Darwin, I had to compile libgmp from source -- which, it turned out, required that I compile libtools from source as well.
45 minutes later (!) I was ready to try to install Math-GMP again. But I then got this error message when I called make:
ld: /usr/local/lib/libgmp.a(mode1o.o) has local relocation entries i +n non-writable section (__TEXT,__text)
Has anyone been able to achieve better results trying to install Math::GMP on Darwin? (I should add that I'm really only interested in this because it's a prerequisite for Net::SSH::Perl.)
My Darwin configuration:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Math::GMP won't install on Darwin
by jaldhar (Vicar) on Apr 15, 2006 at 00:57 UTC | |
by jkeenan1 (Deacon) on Apr 15, 2006 at 01:05 UTC | |
|
Re: Math::GMP won't install on Darwin
by bowei_99 (Friar) on Apr 17, 2006 at 05:59 UTC | |
by jkeenan1 (Deacon) on Apr 20, 2006 at 02:47 UTC | |
by peckel (Initiate) on Jul 10, 2006 at 12:19 UTC | |
by jkeenan1 (Deacon) on Jul 11, 2006 at 11:22 UTC | |
by syphilis (Archbishop) on Jul 11, 2006 at 11:59 UTC | |
by peckel (Initiate) on Jul 14, 2006 at 22:23 UTC | |
| |
|
Re: Math::GMP won't install on Darwin
by gam3 (Curate) on Apr 16, 2006 at 04:22 UTC | |
by jkeenan1 (Deacon) on Apr 16, 2006 at 19:20 UTC |