You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Steffen Beyer <sb...@reactor.de> on 2004/02/10 00:40:36 UTC

@INC is not searched

Hi,

I have a strange problem here:

-OpenBSD 3.4
-Apache/1.3.28 (Unix) AxKit/1.62 mod_perl/1.29 PHP/4.3.4
mod_gzip/1.3.26.1a mod_ssl/2.8.15 OpenSSL/0.9.7b
-perl, v5.8.0

mod_perl is unable to locate any library files, though they definitely do
exist and are readable for user "www":


[Mon Feb  9 22:16:54 2004] [error] [client 192.168.90.1] [AxKit] [Error]
Can't locate utf8.pm in @INC (@INC contains: [many dirs]) at
/usr/local/libdata/perl5/site_perl/i386-openbsd/AxKit.pm line 875.
BEGIN failed--compilation aborted at PerlHandler subroutine `AxKit' line
1.
[Mon Feb  9 22:16:54 2004] [error] [client 192.168.90.1] [AxKit] From:
/usr/local/libdata/perl5/site_perl/i386-openbsd/Apache/AxKit/Exception.pm
: 9

[Mon Feb  9 22:18:37 2004] [error] Can't locate Apache/ReactorFilter.pm in
@INC (@INC contains: [many dirs]) at (eval 13) line 3.
[Mon Feb  9 22:18:37 2004] [error] Undefined subroutine
&Apache::ReactorFilter::handler called at PerlHandler subroutine
`Apache::ReactorFilter' line 1.


The handlers work if I "PerlRequire" a startup.pl file which preloads all
required libs. Trying to load the libs directly with "PerlRequire" results
in similar errors as above.
I tried mod_perl 1.27 port and package, then upgraded to 1.29 from source.

What's wrong?

Regards,
-- 
Steffen Beyer <sb...@reactor.de>

GnuPG key fingerprint: 6C9B 2844 AF75 AC7A C38C  9FFD 06CB A788 398B D2D9
Public key available upon request or at http://wwwkeys.pgp.net

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: @INC is not searched

Posted by Stas Bekman <st...@stason.org>.
Steffen Beyer wrote:
> On Tue, 10 Feb 2004 20:29:43 -0800
> Stas Bekman <st...@stason.org> wrote:
> 
> 
>>Try to strace(1) the process (start with httpd -X so you have only one
>>process to watch) or whatever the equivalent OpenBSD uses.
> 
> 
> Thank you, I solved it.
> It's a good thing to have apache chrooted to /var/www. Argh. ,)

So it was a chroot problem? it didn't see /usr/lib/perl (or whereever it is)?

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: @INC is not searched

Posted by Steffen Beyer <sb...@reactor.de>.
On Tue, 10 Feb 2004 20:29:43 -0800
Stas Bekman <st...@stason.org> wrote:

> Try to strace(1) the process (start with httpd -X so you have only one
> process to watch) or whatever the equivalent OpenBSD uses.

Thank you, I solved it.
It's a good thing to have apache chrooted to /var/www. Argh. ,)

Regards,
-- 
Steffen Beyer <sb...@reactor.de>

GnuPG key fingerprint: 6C9B 2844 AF75 AC7A C38C  9FFD 06CB A788 398B D2D9
Public key available upon request or at http://wwwkeys.pgp.net

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: @INC is not searched

Posted by Stas Bekman <st...@stason.org>.
Steffen Beyer wrote:
> Hi,
> 
> I have a strange problem here:
> 
> -OpenBSD 3.4
> -Apache/1.3.28 (Unix) AxKit/1.62 mod_perl/1.29 PHP/4.3.4
> mod_gzip/1.3.26.1a mod_ssl/2.8.15 OpenSSL/0.9.7b
> -perl, v5.8.0
> 
> mod_perl is unable to locate any library files, though they definitely do
> exist and are readable for user "www":
> 
> 
> [Mon Feb  9 22:16:54 2004] [error] [client 192.168.90.1] [AxKit] [Error]
> Can't locate utf8.pm in @INC (@INC contains: [many dirs]) at
> /usr/local/libdata/perl5/site_perl/i386-openbsd/AxKit.pm line 875.
> BEGIN failed--compilation aborted at PerlHandler subroutine `AxKit' line
> 1.
> [Mon Feb  9 22:16:54 2004] [error] [client 192.168.90.1] [AxKit] From:
> /usr/local/libdata/perl5/site_perl/i386-openbsd/Apache/AxKit/Exception.pm
> : 9
> 
> [Mon Feb  9 22:18:37 2004] [error] Can't locate Apache/ReactorFilter.pm in
> @INC (@INC contains: [many dirs]) at (eval 13) line 3.
> [Mon Feb  9 22:18:37 2004] [error] Undefined subroutine
> &Apache::ReactorFilter::handler called at PerlHandler subroutine
> `Apache::ReactorFilter' line 1.
> 
> 
> The handlers work if I "PerlRequire" a startup.pl file which preloads all
> required libs. Trying to load the libs directly with "PerlRequire" results
> in similar errors as above.
> I tried mod_perl 1.27 port and package, then upgraded to 1.29 from source.
> 
> What's wrong?

Try to strace(1) the process (start with httpd -X so you have only one process 
to watch) or whatever the equivalent OpenBSD uses.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html