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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.