Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Is it possible to image the perl from one box to another

by almut (Canon)
on Jul 29, 2010 at 13:33 UTC ( #851943=note: print w/replies, xml ) Need Help??


in reply to Is it possible to image the perl from one box to another

If the machines are binary-compatible and are running the same OS with the same set of libraries installed, it may be sufficient to just create a tarball (or zipfile) of the entire Perl installation, and unpack it on the target machines (on Unix you generally have to unpack it into the same directory that it was installed originally, because the installation path in hard-coded in the perl binary).

If you have modules that depend on 3rd-party shared libraries installed in other locations (e.g. database libs), you have to transfer them as well.

Update: useful tools for investigating shared library dependencies: ldd on Linux/Unix, Dependency Walker on Windows.

Replies are listed 'Best First'.
Re^2: Is it possible to image the perl from one box to another
by dk (Chaplain) on Jul 30, 2010 at 18:32 UTC
    btw, for strawberry perl, even same paths in not a requirement, there's relocation.pl in the strawberry root directory which does the trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://851943]
help
Chatterbox?
[choroba]: I'm curious which part of your signature do they find offensive.
[LanX]: they?
[LanX]: click!
[choroba]: they
[LanX]: why do you think it's more than one person?
[Your Mother]: Because we are LEGION! Fix YOUR SIG SIG BLOCK!!!!
[Your Mother]: Forgot to sign in as my sockpuppet, how embarrassing!
[1nickt]: pryrt I am creating a Type to check valid user IDs, which must be a whole number greater than or equal to zero. I would like to disallow 1.0 but because of this behaviour, by the time it is checked by the constraint, it *is* an Int.
[LanX]: should this be considered? Re: Parsing .txt into arrays

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2017-05-24 20:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?