in reply to Re: Couldn't find gmp library after moving perl module
in thread Couldn't find gmp library after moving perl module

Thanks! I'll try to re-install some modules on machine B. Two quick questions: 1. "use lib $my_perl_dir" shoul be placed in my perl script, right? 2. Do you think just move the following gmp files should be enough to use gmp library? libgmp.a libgmp.so libgmp.so.3.4.1 libgmp.la libgmp.so.3
  • Comment on Re^2: Couldn't find gmp library after moving perl module

Replies are listed 'Best First'.
Re^3: Couldn't find gmp library after moving perl module
by ides (Deacon) on Sep 05, 2007 at 15:31 UTC

    Yes you'll need the 'use lib /path/to/wherever' in your script. This tells Perl to add this path to @INC so it will then look there for modules.

    As for moving the libraries, it *might work. But there are several things that can go wrong when doing that, so it's best to just rebuild the module on the local box to avoid those issues. Unless of course like actually enjoy doing things the hard way and creating more work for yourself!

    Frank Wiles <frank@revsys.com>
    www.revsys.com