CGI DBI MySql problem

From: Cognition Peon (cenxnfu_at_rpr.nevmban.rqh)
Date: 11/17/03


Date: Mon, 17 Nov 2003 13:22:56 -0700


Hi,

The program called list.html (extension html instead of pl) is written
in perl 5.6.1. It uses the following modules and their corresponding
versions are written in brackets

use strict;
use Text::Template; (1.44)
use CGI::Pretty ':standard'; (2.752)
use DBI; (1.38)

also, DBD::mysql (2.9003) is installed as I use mysql (11.16) and apache
web server on Sun Solaris.

The program perfectly outputs the html when run at command prompt
(./list.html), but web server gives me "500 internal server error" and my
apache log says:

Can't locate loadable object for module DBI in @INC (@INC contains:
/opt/perl/lib/5.6.1/sun4-solaris /opt/perl/lib/5.6.1
/opt/perl/lib/site_perl/5.6.1/sun4-solaris /opt/perl/lib/site_perl/5.6.1
/opt/perl/lib/site_perl .) at
/opt/perl/lib/site_perl/5.6.1/sun4-solaris/DBI.pm line 255
BEGIN failed--compilation aborted at
/opt/perl/lib/site_perl/5.6.1/sun4-solaris/DBI.pm line 255.
Compilation failed in require at
/usr/local/apache/cgi-bin/genotyping/list.html line 18.
BEGIN failed--compilation aborted at
/usr/local/apache/cgi-bin/genotyping/list.html line 18.
[Mon Nov 17 13:09:36 2003] [error] [client 192.168.1.103] Premature end of
script headers: /usr/local/apache/cgi-bin/genotyping/list.html

I am not able to comprehend the problem, because the modules are actually
present and the program works at the command prompt. Most of the other
people who had similar problems, were asked to install DBD::mysql module,
but I already have it. Can you guys please tell me what I am missing.

Have a good day!!!
Thanks,
Prakash.

-- 
echo cenxnfu@rpr.nevmban.rqh | perl -pe 'y/A-Za-z/N-ZA-Mn-za-m/'
Off the keyboard, over the bridge, past the hub, thru the
router, down the line, ....nothing but net!!
-------------------------------------
Printed using 100% recycled electrons