For reasons that I don't understand, it makes a difference where I attempt to install a CPAN module from.

I configured and built perl from /home/me/build/perl/perl-5.8.8 and have been attempting to configure and install CPAN modules from /home/me/build/perl-addons/tmp/<Module>. I've been trying to force ExtUtils::MakeMaker to recognize the perl directory by supplying a PERL_LIB and PERL_ARCHLIB.

If I simply work from /home/me/build/perl/perl-5.8.8/<Module> then ExtUtils::MakeMaker finds everything with no coercion necessary; the warnings about Config.pm and architecture go away.

This leads me to think that maybe I'm not passing the right parameters to perl Makefile.PL (currently PREFIX, PERL_LIB, and PERL_ARCHLIB). A quick read through ExtUtils::MakeMaker's perldoc seems to indicate that only PERL_LIB and PERL_ARCHLIB should be necessary. Setting PERL_SRC (which happens automatically when working from /home/me/build/perl/perl-5.8.8/<Module>) throws a warning when working out of /home/me/build/perl-addons/tmp/<Module>.

So, this allows me to accomplish what I'm trying to do, and even simplifies the process a little but I don't understand why ExtUtils::MakeMaker is behaving this way and why the flags that I was passing in before weren't sufficient.

In reply to Re: installing CPAN modules locally with a local perl installation by Anonymous Monk
in thread installing CPAN modules locally with a local perl installation by Anonymous Monk

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.