Japhering has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: changing mod_perl's version of %INC
by almut (Canon) on Mar 17, 2010 at 22:13 UTC | |
|
Re: changing mod_perl's version of %INC
by WizardOfUz (Friar) on Mar 17, 2010 at 21:57 UTC | |
|
Re: changing mod_perl's version of %INC
by ikegami (Patriarch) on Mar 17, 2010 at 22:06 UTC | |
|
Re: changing mod_perl's version of %INC
by rowdog (Curate) on Mar 18, 2010 at 19:34 UTC |