Symlinking does not look like a good idea to me. hawthorne wrote that his installation was moved to a different server, propably with a newer OS version, different library versions, different (g)cc version, and so on. Even perl itself may have been compiled differently. So, while the pure Perl part of the modules should survive that quite easily, the XS libraries may not be binary compatible and will probably cause segfaults and other unexpected behaviour.

The best bet here is to install all required modules from CPAN, using Perl's cpan utility.

With access to the old server, creating an autobundle on the old server and installing it on the new server should be the easiest way.

Without access to the old server, you need to find the required modules manually. I would start by grepping all existing code for lines containing "use" or "require", followed by extracting the loaded modules, and finally creating a distinct, ordered list of modules. find, grep, sort, and uniq could help, or a little Perl script with File::Find, grep, sort, and a hash of module names. With that list, I start the cpan utility and make it install each and every module on the list, either manually using the cpan utility or by using the CPAN API.

After that, every single application has to be tested, and watched for errors. (Hint: Read the web server's error log.) All modules that are still missing have to be installed, as above.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

In reply to Re^2: How do I update my perlmod lib files to 5.8.8? by afoken
in thread How do I update my perlmod lib files to 5.8.8? by hawthorne

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.