There's no easy answer. You have a couple of options, though, and if this is intended to be a long-lived production server I strongly recommend giving all of these serious thought before choosing which one is right for you. Read around the subject both here at at the monastery and on the CentOS fora to get a feel for the pros and cons.

You could continue to use the system perl, use packaged modules where you can (eg. use the perl-Moose package to get Moose and all its dependencies) and only install those modules from source which are not available as packages. You must be very careful not to overwrite the system modules if you do this.

You could continue to use the system perl but set up your own personal library path and install all the modules required into that personal area from CPAN using an installer (cpan/cpanplus/cpanminus). This still takes a bit of care but you can do it all as a fairly unprivileged user which can help. Watch out for the contexts if you have SELinux enabled (which you should, of course).

Or you could go the whole hog, leaving the system perl well alone and installing a fresh perl of your own choosing elsewhere (from source) and then install the modules with that perl into its own dedicated library paths. This seems to be the option favoured by most monks here but I wear many hats and when wearing my sysadm hat am less keen on this as it becomes a hassle and therefore a danger at medium scales.

Whichever way you go, make a plan and stick to it. If it really does turn out to be the wrong choice it can be a bit of a nightmare to switch later. Good luck.


In reply to Re: Installing Google Spreadsheet Module with a lot of prerequisites by hippo
in thread Installing Google Spreadsheet Module with a lot of prerequisites by Bagels

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.