Re: PerlVINC and Can't locate Foo.pm in @INC ...

2002-05-10 Thread Stas Bekman

Aaron J Mackey wrote:
> Banging my head against the wall a bit, 'cause this is just so simple, but
> still not working:
> 
> Versions: Apache 1.3.22, mod_perl 1.26, perl 5.6.1
> 
> relevant lines from httpd.conf:
> 
>   PerlWarn On
>   PerlModule Apache::PerlVINC
> 
>   
> SetHandler  perl-script
> PerlHandler DAT::Client::WWW
> 
> PerlINC /home/ajm6q/cvs/dat-head/lib
> PerlFixupHandlerApache::PerlVINC
> PerlVersion DAT/Client/WWW.pm
>   
> 
> Error log when access is attempted (other standard directories edited out
> for brevity):
> 
> [Fri May 10 13:39:39 2002] [error] Can't locate DAT/Client/WWW.pm in @INC
> (@INC contains: /home/ajm6q/cvs/dat-head/lib [... edited out ...]) at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/PerlVINC.pm line 55.
> 
> The file is, of course, actually there:
> 
> % ls -l /home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm
> -rwxrwxr-x1 ajm6qwebwork   394 May 10 12:40 
>/home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm
> 
> 
> What am I missing?

Does it normally work? (without Apache::PerlVINC)

It's possible that you have wrong permissions on one of the segments of 
/home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm so it cannot read the 
final path.

First test simply with:

die $! unless -r /home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm



__
Stas BekmanJAm_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




PerlVINC and Can't locate Foo.pm in @INC ...

2002-05-10 Thread Aaron J Mackey


Banging my head against the wall a bit, 'cause this is just so simple, but
still not working:

Versions: Apache 1.3.22, mod_perl 1.26, perl 5.6.1

relevant lines from httpd.conf:

  PerlWarn On
  PerlModule Apache::PerlVINC

  
SetHandler  perl-script
PerlHandler DAT::Client::WWW

PerlINC /home/ajm6q/cvs/dat-head/lib
PerlFixupHandlerApache::PerlVINC
PerlVersion DAT/Client/WWW.pm
  

Error log when access is attempted (other standard directories edited out
for brevity):

[Fri May 10 13:39:39 2002] [error] Can't locate DAT/Client/WWW.pm in @INC
(@INC contains: /home/ajm6q/cvs/dat-head/lib [... edited out ...]) at
/usr/lib/perl5/site_perl/5.6.1/i386-linux/Apache/PerlVINC.pm line 55.

The file is, of course, actually there:

% ls -l /home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm
-rwxrwxr-x1 ajm6qwebwork   394 May 10 12:40 
/home/ajm6q/cvs/dat-head/lib/DAT/Client/WWW.pm


What am I missing?

thanks for any help,

-Aaron