BernieC has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to see how trying to set up a new Perl install {in case, for example, if my main one breaks}. I've run
cpan autobundle
and I located the "bundle file" and I read the .pm and it says that to install everything all you need to do is
perl -MCPAN -e 'install Bundle::Snapshot_2022_10_25_00'
so I'm on an "empty" system, I ran the strawberry perl .msi and it seemed to install just fine. I copied the autobundle over to the new system -- I put it on the desktop and that didn't work so I copied what I had on my "real" system and in the strawberry perl directory I created a cpan/bundle directory and tried again. I got
C:\Users\Bernie\Desktop>perl -MCPAN -e "install Bundle::Snapshot_2022_ +10_25_00" Database was generated on Tue, 25 Oct 2022 22:53:07 GMT Warning: Cannot install Bundle::Snapshot_2022_10_25_00, don't know wha +t it is. Try the command i /Bundle::Snapshot_2022_10_25_00/ to find objects with matching identifiers.
What am I doing wrong? I'm guessing the trouble is that I haven't a clue where to *put* the autobundle file so that perl can find it.

Replies are listed 'Best First'.
Re: Installing perl from scratch
by atcroft (Abbot) on Oct 25, 2022 at 23:52 UTC

    Let it do the work--I would run your 'cpan autobundle' on the NEW system and see where it drops the bundle file. That's the directory you want to copy your existing one to. Then try running your install command.

    Hope that helps. (Let us know how it goes, please. :) )

      That did the trick -- I didn't need to run it on the new system, I knew where it was on the old system and I just put it there and right now it is happily loading several *hundred* packages! the magic location is {perldir}/cpan/bundles
Re: Installing perl from scratch
by Fletch (Bishop) on Oct 26, 2022 at 12:24 UTC

    The bundle file is a perl module and needs to be on the usual module search path. For the purposes of running CPAN on real OSen that's usually somewhere in ~/.cpan/Bundle/Snapshot_BLAH.pm so whatever the wintendo equivalent of that path would be.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

Re: Installing perl from scratch
by cavac (Prior) on Oct 27, 2022 at 10:44 UTC

    I think i'm a bit old-school. I still use ye olde step-by-step procedure from https://www.cpan.org/src/

    wget https://www.cpan.org/src/5.0/perl-5.36.0.tar.gz tar -xzf perl-5.36.0.tar.gz cd perl-5.36.0 ./Configure -des -Dprefix=$HOME/localperl make make test make install

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

      None of which works out of the box on OPs platform :)

Re: Installing perl from scratch
by Anonymous Monk on Oct 26, 2022 at 09:25 UTC