I was able to install GMP library, Math::GMP, Math::BigINT and Net::SSH on a Solaris machine A. Then I tar-ed the whole Perl directory and moved it to a Solaris machine B. I also moved *libgmp* files (libgmp.a libgmp.la libgmp.so libgmp.so.3 libgmp.so.3.4.1) under /usr/local/lib to machine B, same path. On machine B, I got an error message: "Math::BigInt: couldn't load specified math lib(s), fallback to Math::BigInt::Calc at /edi/perl/lib/site_perl/5.8.0/Crypt/DH.pm line 6 " I recall when I installed Math::GMP and Math::BigInt on machine A, I specified the lib path = "/usr/local/lib" in Makefile.PL, otherwise, "No library found for -lgmp". What caused machine B fail to find the gmp library? (P.S. Since I’m not a su on machine B, I can not install perl module.) Thanks so much for any suggestions!

In reply to Couldn't find gmp library after moving perl module by helenocean

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.