If there's no 'libgmp.a' for the linker to find then one would expect that it's finding the shared library. However, on my Win32 box, the shared library that gets created is 'libgmp-3.dll' so I need to change the 'LIBS' entry in the Math::GMP 'Makefile.PL' from
'LIBS' => ['-lgmp'],
to:
'LIBS' => ['-lgmp-3'],
Probably worth checking out the name of the GMP shared library and statisfying yourself that '-lgmp' will allow the linker to find it. If your shared library is named 'libgmp-3.so' then '-lgmp' should not enable the linker to find it ... in which case the linker is probably still finding a 'libgmp.a' somewhere.

On Win32 I also need to specify the location of the shared library, so the 'LIBS' entry actually becomes something like:
'LIBS' => ['-L/my_dll_folder -lgmp-3'],
However, if your gmp shared library is in a location where the linker looks by default, then you won't have to bother with the '-L' switch.

Don't be too stressed about getting this sorted out in a hurry ... it could yet be nothing more than a wild goose chase :-)

Cheers,
Rob

In reply to Re^10: Math::GMP won't install on Darwin by syphilis
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.