in reply to Replicate Perl setup

> to copy the modules of the specific version they are in from the old machine to the new machine

That depends on hardware and OS.

On windows copying the directory tree is sufficient, at least with ActiveState.

I think I heard you can do similar things on Linux if the OS and hardware are sufficiently close, but you'll have to replicate some ENV-settings too.

It mainly boils down to the binary compatibility of installed XS modules, otherwise they need to be recompiled.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^2: Replicate Perl setup
by Marshall (Canon) on Dec 13, 2021 at 02:48 UTC
    On windows copying the directory tree is sufficient, at least with ActiveState.

    This is true, but AS licensing agreements from years ago prohibited that for actual product shipment. I don't know what current AS licensing says for a re-distributed product. I suspect potential legal trouble if this is done for end-product distribution vs perhaps in-house use.

    At the time, I bought a Perl Dev Kit license and generated an .exe file for just that legal reason. Of course the Dev Kit has been discontinued.

    AS did have some tools for "cloning" an installation. You ran a utility to make an XML file. You installed Perl directly from AS (no binary distribution allowed) on the target machine. Then there was a utility that used this XML file which was supposed to re-create the environment on the target machine. I had trouble with that and I think many others did too.

    The new AS way is to create an account on their site and have AS build a version for you with the modules that you need. The result of this is an installable MSI file or equivalent in the Unix world. That AS built version (which includes XS binaries for your platform) can be freely re-distributed without restriction. In the Windows world, this is good. There of course can be complex issues with multiple Perl versions on any platform.

Re^2: Replicate Perl setup
by nikosv (Deacon) on Dec 10, 2021 at 15:23 UTC
    thanks