I'm trying to replicate a development environment with the following components:

Ubuntu 9.10
Apache2 2.2.12
mod_perl2 2.0.4

and a perl based portal package

Metadot 6.4.5.3

Metadot code sits outside of the installed %INC paths.

In theory, I should be able to set and export PERL5LIB in the root shell before starting Apache2 and have the contents added to %INC.

When I set PERL5LIB and run perl -V in the root shell, I see that %INC has been appropriately modified.

I verify that there are NO Apache instances running. Check to make sure PERL5LIB is set as desired in the root shell environment. Then I start Apache.

The first page I hit that calls a Metadot routine errors out with a "Can't locate Metadot.pm in @INC ..." message where the displayed %INC does not include the contents of PERL5LIB.

It works fine on the production RH server, just not on my development machine.

Anyone have any ideas of what I might be doing wrong?

Thanks


In reply to changing mod_perl's version of %INC by Japhering

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.