in reply to Install dependencies of module

G'day bliako,

"I take my distribution to another computer"

I assume by "distribution" you mean something like Some-Module-9.99.tar.gz. Create a new directory on your target computer and put the distribution there. Don't unpack it. Just run "cpanm --installdeps ." from that directory. As per the linked documentation, this "Installs the dependencies of the target distribution but won't build itself". You might also add "--verbose" to get more feedback about what's happening.

— Ken

Replies are listed 'Best First'.
Re^2: Install dependencies of module
by bliako (Abbot) on Mar 07, 2023 at 16:02 UTC

    Hello kcott, Yes, I have the tarball as you describe. But I would prefer that I do it from inside the dist dir (which is where I ran the cpanm --installdeps . from) as I am constantly developing this and it's likely that I will add a dependency on the fly and want to have it installed like this. It's much more convenient this way I find.

    Edit: I can create the tarball with a make dist inside the distribution dir but cpanm --installdeps . does not do anything, it says:

    --> Working on . Configuring XXX-0.01 ... OK <== Installed dependencies for .. Finishing.

    so no joy with this as there are tons of dependencies.