Hi, I've read the CPAN.pm FAQ and documentation, but I have a couple of questions that I'd like to get feedback on based on other people's experience.

I configured CPAN to install everything in ~/perl and run CPAN.pm exclusively as "me" (not root) to avoid messing with the default /usr/lib/perl5 installation. My assumption is that I all module packages should use the arguments passed to them by CPAN.pm and not try to override those settings... I know that they can try to do whatever they want to do, but they should all be following the same conventions, right?

Nonetheless, I can't seem to even upgrade Bundle::CPAN without some module failing to install properly. I've noticed that some modules still attempt to install themselves in /usr/lib/perl5 and I'm not sure if it's the module's problem or my system configuration. One example is ExtUtils::AutoInstall.

In general, is it wrong to expect that I should be able to install everything as a non-root user in ~/perl, or are there some cases where a module must be installed by root? (I don't care if other users can't access what I install.)

I've also noticed that some modules are unpacked under .cpan/build with their original ownership (which shows up as a number because it's not in my passwd), thus causing build problems when the install script tries to move/create/delete files in that directory tree. This sounds like a problem with CPAN.pm, but why would it do this with only a few modules? This happened with Class::ErrorHandler and Crypt::DES_EDE3.

Has everyone else had a smooth experience with CPAN.pm? I was expecting to just install Bundle::CPAN and say yes to all the dependency prompts and have it go off without a hitch.

Thanks.


In reply to Looking for CPAN.pm insight/best practice by btr

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.