Operating System - HP-UX
1755699 Members
3410 Online
108837 Solutions
New Discussion

hpapache2 can't locate GD module

 
Karl Pelz
Occasional Contributor

hpapache2 can't locate GD module

Hi,
I've installed perl 5.8. with several additional modules e.g. GD::Chart. When I ran the following script (call metrics.pl) from the command line:
__________
#!/opt/perl/bin/perl -w
use CGI;
use GD;
my $q = new CGI;
print $q->header( "text/html" );
print $q->title( "Dies ist eine CGI Seite");
foreach (@INC) {
print $q->p, $_ ;
}
______________
everything is fine.
If I call the same script via hpapache2 using cgi I receive an "Error 500: Premature end of script headers". The logfile from hpapache shows the following error message:
__________________
[Wed Oct 01 13:19:03 2003] [error] [client ....] Premature end of script headers: metrics.pl
[Wed Oct 01 13:19:03 2003] [error] [client ....] Can't locate loadable object for module GD in @INC (@INC contains: /opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi /opt/perl/lib/5.8.0 /opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.8.0 /opt/perl/lib/site_perl .) at /archive1/docs-edc/cgi/metrics.pl line 3
[Wed Oct 01 13:19:03 2003] [error] [client ....] Compilation failed in require at /archive1/docs-edc/cgi/metrics.pl line 3.
[Wed Oct 01 13:19:03 2003] [error] [client ....] BEGIN failed--compilation aborted at /archive1/docs-edc/cgi/metrics.pl line 3.
__________________
But an ls -la /opt/perl/lib/site_perl/5.8.0/GD show the GD module:
total 128
drwxr-xr-x 4 root root 96 Sep 26 11:25 .
dr-xr-xr-x 32 root sys 1024 Sep 26 11:47 ..
drwxr-xr-x 2 root sys 1024 Sep 26 11:25 Graph
-rwxr-xr-x 1 root sys 45395 Jul 1 05:02 Graph.pm
drwxr-xr-x 2 root sys 96 Sep 26 11:25 Text
-rwxr-xr-x 1 root sys 16996 Jun 19 00:13 Text.pm
_______________
Could someone help?
Thanks in advance.

Karl