This is what I've done over the past several days:

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.

Jim Keenan

In reply to Re^2: Math::GMP won't install on Darwin by jkeenan1
in thread Math::GMP won't install on Darwin by jkeenan1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.