Boris Zentner wrote:
[Finally the kind moderator let your messages through ;) Thank you!]
In short lib is searched before blib/lib. I had a workaround that overwrites some routines in Apache::Test but it is really uggly and may not work taht long. Im happy that Stas is now looking into the problem.
my modperl_onc.pl contains this lines: ###### modperl_inc.pl
use lib '/tmp/ap_ex/blib/arch'; use lib '/tmp/ap_ex/blib/lib'; 1;
which shows that '/tmp/ap_ex/lib' is no longer hardcoded in the server setup. But...
##### extra.last.conf.in <Location /> SetHandler perl-script PerlSetVar PKIT_ROOT @ServerRoot@/../eg PerlSetVar PKIT_SERVER staging PerlHandler +Apache::PageKit <Perl> use Apache::PageKit; Apache::PageKit->startup('@ServerRoot@/../eg','staging'); </Perl> </Location>
and here is my @INC as you can see loaded from lib and not from blib/lib as desired.
Can't locate Text/Iconv.pm in @INC (@INC contains: /tmp/ap_ex/Apache-Test/ lib /tmp/ap_ex/lib /tmp/ap_ex/blib/lib /tmp/ap_ex/blib/arch /home/ptest/lib/ perl5/5.8.1/i686-linux-thread-multi /home/ptest/lib/perl5/5.8.1/ i686-linux-thread-multi /home/ptest/lib/perl5/5.8.1 /home/ptest/lib/perl5/ site_perl/5.8.1/i686-linux-thread-multi /home/ptest/lib/perl5/ site_perl/5.8.1/i686-linux-thread-multi /home/ptest/lib/perl5/ site_perl/5.8.1 /home/ptest/lib/perl5/site_perl/5.8.1/ i686-linux-thread-multi /home/ptest/lib/perl5/site_perl/5.8.1 /home/ptest/ lib/perl5/site_perl . /home/ptest/lib/perl5/5.8.1/i686-linux-thread-multi / home/ptest/lib/perl5/5.8.1 /home/ptest/lib/perl5/site_perl/5.8.1/ i686-linux-thread-multi /home/ptest/lib/perl5/site_perl/5.8.1 /home/ptest/ lib/perl5/site_perl .) at /tmp/ap_ex/lib/Apache/PageKit.pm line 21.
Found it. The autogenerated t/TEST was also pushing lib into @INC, will fix that shortly.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com