Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Couldn't find gmp library after moving perl module

by ides (Deacon)
on Sep 04, 2007 at 16:18 UTC ( #636974=note: print w/ replies, xml ) Need Help??


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

Just an FYI, but trying to "move" modules like this is always going to cause you more pain than it is worth. Even without root ( or su/sudo ) access you can install a modules anywhere you can write files on the filesystem. Just install the module as you would normally, but give it a PREFIX of some location you have write access to, such as $HOME.

You will then need to just 'use lib' that location and you can avoid situations like this.

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


Comment on Re: Couldn't find gmp library after moving perl module
Re^2: Couldn't find gmp library after moving perl module
by Anonymous Monk on Sep 04, 2007 at 16:44 UTC
    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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://636974]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2014-07-23 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (148 votes), past polls