You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Brown, Jeffrey" <je...@orst.edu> on 2003/05/29 04:39:05 UTC

[error] Can't locate CGI.pm in @INC

I have installed OpenBSD 3.2, with Apache 1.3.26, and mod_perl 1.26
which was installed as a package. I have rebooted, stopped and started
apache. I have permissions of 755 on my perl scripts and here is my
error log:
 
[Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC (@INC
contains: /usr/local/lib/site_perl/5.6.1/i386-openbsd
/usr/libdata/perl5/i386-openbsd/5.6.1
/usr/local/libdata/perl5/i386-openbsd/5.6.1 /usr/libdata/perl5
/usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd
/usr/libdata/perl5/site_perl/i386-openbsd
/usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl
/usr/local/lib/perl5/site_perl . /var/www/ /var/www/lib/perl) at
/htdocs/perl/hellothere.pl line 3 during global destruction.
BEGIN failed--compilation aborted at /htdocs/perl/hellothere.pl line 3
during global destruction.
 
When I do a find for CGI.pm here are the results:
 
as07# find / -name CGI.pm
/usr/libdata/perl5/CGI.pm
 
I have looked through the online mod_perl docs to no avail. Any help
would be greatly appreciated!
 
Jeff Brown
 

Re: [error] Can't locate CGI.pm in @INC

Posted by Perrin Harkins <pe...@elem.com>.
On Wed, 2003-05-28 at 22:39, Brown, Jeffrey wrote:
> [Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC (@INC
> contains: 
[...]
> /usr/libdata/perl5/CGI.pm

This sort of thing is usually a permissions problem.  Try opening that
file (full path to CGI.pm) from your CGI and see if it lets you.

- Perrin


Re: [error] Can't locate CGI.pm in @INC

Posted by Stas Bekman <st...@stason.org>.
Brown, Jeffrey wrote:
> I have installed OpenBSD 3.2, with Apache 1.3.26, and mod_perl 1.26 
> which was installed as a package. I have rebooted, stopped and started 
> apache. I have permissions of 755 on my perl scripts and here is my 
> error log:
> 
>  
> 
> [Wed May 28 19:33:57 2003] [error] Can't locate CGI.pm in @INC (@INC 
> contains: /usr/local/lib/site_perl/5.6.1/i386-openbsd 
> /usr/libdata/perl5/i386-openbsd/5.6.1 
> /usr/local/libdata/perl5/i386-openbsd/5.6.1 /usr/libdata/perl5 
> /usr/local/libdata/perl5 /usr/local/libdata/perl5/site_perl/i386-openbsd 
> /usr/libdata/perl5/site_perl/i386-openbsd 
> /usr/local/libdata/perl5/site_perl /usr/libdata/perl5/site_perl 
> /usr/local/lib/perl5/site_perl . /var/www/ /var/www/lib/perl) at 
> /htdocs/perl/hellothere.pl line 3 during global destruction.
> 
> BEGIN failed--compilation aborted at /htdocs/perl/hellothere.pl line 3 
> during global destruction.

global destruction?

> When I do a find for CGI.pm here are the results:

> as07# find / -name CGI.pm
> 
> /usr/libdata/perl5/CGI.pm

/usr/libdata/perl5/ is in @INC. Check CGI.pm perms. See that it is readable by 
the user that is running the server.



__________________________________________________________________
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