No problem (famous last words ;-) First decide on a version of Perl. I use 5.6.2 as I don't need the features of 5.8.x (and it is slower for some things). Once you have settled on a version of perl compile and install it on one server (use the source Luke). You can probably accept all the defaults. Next use autobundle feature of CPAN on the old server:
$ perl -MCPAN -e autobundle [snip] Wrote bundle file /root/.cpan/Bundle/Snapshot_2004_10_24_00.pm
This will get you your module inventory. On the virgin server run CPAN once to initialise it, then (after you have copied the bundle file over)
$ perl -MCPAN -e 'install Bundle::Snapshot_YYYY_MM_DD_HH'
All going well everything should now be installed. You may have to do a few modules by hand. Once you are finished on one server you can (on identical architecture) just tar.gz the /usr/lib/perl5 tree and copy it to the new server and untar in place. You also need to copy/link the actual perl binary (plus perldoc and perlbug binaries) into /usr/bin and you should have another complete perl done. No need to compile perl again or run the CPAN install - it should all just be there and work. Rinse and repeat. A Guide to Installing Modules may be of use if you don't know the perl Makefile && make && make test && make install mantra by heart yet.
cheers
tachyon
In reply to Re: Installing modules, trial by fire
by tachyon
in thread Installing modules, trial by fire
by anonamonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |