-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm sure I'm missing something obvious, but after mucking about for some
time with this, I'm still stumped.

The following script compiles off the command line, but not through CGI.


================================================================ #!/usr/bin/perl

use strict;
use warnings;
use Data::Dumper;
use XDB; # the offending line
use CGI ":cgi";

my $cgi = CGI->new();

print $cgi->header();

print "<pre>".Data::Dumper->Dump([ \%ENV ], [ "ENV" ])."</pre>";

print $cgi->footer();

=================================================================

Error log output from Apache is as follows:

=================================================================
[Wed Mar 02 14:51:04 2005] [error] [client 127.0.0.1] Can't locate
XDB.pm in @INC (@INC contains:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .) at /var/www/cgi-bin/env.cgi line 7.
[Wed Mar 02 14:51:04 2005] [error] [client 127.0.0.1] BEGIN
failed--compilation aborted at /var/www/cgi-bin/env.cgi line 7.
[Wed Mar 02 14:51:04 2005] [error] [client 127.0.0.1] Premature end of
script headers: env.cgi
=================================================================


Here's the results of an ls -laH of /usr/lib/perl5/site_perl/5.8.5

=================================================================
[EMAIL PROTECTED] 5.8.5]# ls -la
total 124
drwxr-xr-x  12 aaron aaron  4096 Mar  2 14:52 .
drwxr-xr-x   8 root  root   4096 Feb  4 15:07 ..
drwxr-xr-x   5 aaron aaron  4096 Feb 24 16:25 Database
drwxr-xr-x   2 aaron aaron  4096 Feb 15 11:06 Date
drwxr-xr-x   3 aaron aaron  4096 Mar  2 13:59 File
drwxr-xr-x   6 aaron aaron  4096 Mar  2 14:52 i386-linux-thread-multi
drwxr-xr-x   2 aaron aaron  4096 Jan 31 11:48 mapscript
drwxr-xr-x   2 aaron aaron  4096 Feb 15 11:13 Net
drwxr-xr-x   4 aaron aaron  4096 Dec 21 13:39 Space
drwxr-xr-x   3 aaron aaron  4096 Feb 15 11:21 Term
drwxr-xr-x   5 aaron aaron  4096 Mar  2 12:37 XDB
- -rwxr-xr-x   1 aaron aaron 22645 Feb 15 12:11 XDB.pm
drwxr-xr-x   3 aaron aaron  4096 Dec 15 14:31 XML
=================================================================

And you can see that the XDB.pm file DOES exist in that directory, and
that permissions are world-readable.

Any ideas?


- -- Aaron Craig [EMAIL PROTECTED]

===========================================================
Get Firefox!
http://www.spreadfirefox.com/?q=affiliates&amp;id=0&amp;t=1
===========================================================


- -=-=- There was never yet philosopher that could endure the toothache patiently -- Much Ado, Act v, Sc.1 - -=-=-



- -=-=-
Falstaff sweats to death and lards the lean earth as he walks along. --I
Henry IV, II:2
- -=-=-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCJc5FoyEQRcU83p4RAgbZAKCHVTgKALQ/Ub5NLJo9kT4I9p0HOQCbBl32
mrFv4drNmRKeJd1Y67dtlLA=
=NVlm
-----END PGP SIGNATURE-----

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to