RE: [error] Can't locate CGI.pm in @INC
Problem solved! You all are a fantastic resource to newbies! Jeff -Original Message- From: Ed [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 9:28 PM To: Brown, Jeffrey; [EMAIL PROTECTED] On Wed, May 28, 2003 at 09:11:06PM -0700, Brown, Jeffrey wrote: > Here are the results from the log file: > > [Wed May 28 20:50:21 2003] [error] No such file or directory at > /htdocs/perl/first.pl line 6 during global destruction. openbsd's httpd is chrooted. Ed.
RE: [error] Can't locate CGI.pm in @INC
Here are the results from the log file: [Wed May 28 20:50:21 2003] [error] No such file or directory at /htdocs/perl/first.pl line 6 during global destruction. Jeff -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 8:36 PM To: Brown, Jeffrey Cc: [EMAIL PROTECTED] On Wed, 2003-05-28 at 23:25, Brown, Jeffrey wrote: > Do you mean give the path in my perl script? > > So the line in my code: > > use CGI qw(:standard); > > would be: > > use /usr/libdata/perl5/CGI qw(:standard); Actually, what I had in mind was just this: open(CGI, '/usr/libdata/perl5/CGI.pm') or die $!; If you can't read the file, that line will die. - Perrin
RE: [error] Can't locate CGI.pm in @INC
Do you mean give the path in my perl script? So the line in my code: use CGI qw(:standard); would be: use /usr/libdata/perl5/CGI qw(:standard); jeff -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:50 PM To: Brown, Jeffrey Cc: [EMAIL PROTECTED] 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
Here are the permissions on the file: -r--r--r-- 1 root wheel 224666 Apr 28 06:35 CGI.pm The BSD OS is new to me, I am more familure with redhat...but there are some definite perks to OpenBSD and that is why I run it. Anyway wheel is the group, and Apache uses the user and group www to run the server. Any more help? Jeff -Original Message- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 28, 2003 7:50 PM To: Brown, Jeffrey Cc: [EMAIL PROTECTED] 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
[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