in reply to Re: Math::GMP won't install on Darwin
in thread Math::GMP won't install on Darwin
1. I upgraded to the most recent version of gcc which is expected to work on Mac OS X 10.3.9: gcc-4.0.3
[jimk] 510 $ gcc -v Using built-in specs. Target: powerpc-apple-darwin7.9.0 Configured with: ../gcc-4.0.3/configure : (reconfigured) ../gcc-4.0.3 +/configure Thread model: posix gcc version 4.0.3
This process, incidentally, took hours. I went do dinner and then to bed and it was still running! Did a lot of work with gcj, which I guess has to do with Java.
2. Tonight I reinstalled gmp-4.2. It went much faster than previously. As per the instructions cited by bowei_99 above, I performed make check after doing make install. All tests passed.
3. I attempted to reinstall Math-GMP via the cpan shell. I got the same error as before:
CPAN.pm: Going to build C/CH/CHIPT/Math-GMP-2.04.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/local/bin/perl /usr/local/lib/perl5/5.8.7/ExtUtils/xsubpp -typem +ap /usr/local/lib/perl5/5.8.7/ExtUtils/typemap -typemap typemap GMP. +xs > GMP.xsc && mv GMP.xsc GMP.c cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing + -pipe -I/usr/local/include -Os -DVERSION=\"2.04\" -DXS_VERSION=\"2 +.04\" "-I/usr/local/lib/perl5/5.8.7/darwin-2level/CORE" GMP.c Running Mkbootstrap for Math::GMP () chmod 644 GMP.bs rm -f blib/arch/auto/Math/GMP/GMP.bundle env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_looku +p -L/usr/local/lib GMP.o -o blib/arch/auto/Math/GMP/GMP.bundle \ -lgmp \ ld: /usr/local/lib/libgmp.a(mode1o.o) has local relocation entries in +non-writable section (__TEXT,__text) make: *** [blib/arch/auto/Math/GMP/GMP.bundle] 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
Any more ideas? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Math::GMP won't install on Darwin
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 | |
by syphilis (Archbishop) on Jul 15, 2006 at 01:48 UTC | |
by peckel (Initiate) on Jul 17, 2006 at 09:45 UTC | |
|