PERL5LIB vs. httpd.conf

[prev] [thread] [next] [Date index for 2005/05/02]

From: Jan Poslusny
Subject: PERL5LIB vs. httpd.conf
Date: 08:55 on 02 May 2005
Hi modperl gentlemen,
I am newbie in this list, but I have some experience with mod_perl. I 
use apache 1.3 with statically linked mod_perl 1.29 on Fedora Core III, 
i386. Now I started development of Apache::MyModule from scratch. I 
don't want to install MyModule.pm into standard perl directories now, so 
I want to install into /usr/local/myproject/...
If I export the PERL5LIB to bash environment and then start apache with 
this environment, PerlModule Apache::MyModule in httpd.conf causes no 
problems. But if I don't export PERL5LIB into environment and try to 
declare exactly the same value via PerlSetEnv PERL5LIB 
"/usr/local/myproject/..." and then PerlModule Apache::MyModule, apache 
cannot start with error: Can't locate Apache/MyModule.pm in @INC...

Where is the problem? I see only one workaround, to create symbolic link 
on /usr/local/apache/lib/perl directory, which is in @INC. But I would 
like to understand, what is wrong on PerlSetEnv PERL5LIB, and, of 
course, the clear way how to load modules on non-perl paths.

Regards,
pajout

PERL5LIB vs. httpd.conf
Jan Poslusny 08:55 on 02 May 2005

Re: PERL5LIB vs. httpd.conf
Enno 09:33 on 02 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52