[rrd-users] problem with RRDs.pm and apache

Alejandro Galue agalue at sync.com.ve
Thu Sep 20 22:37:25 MEST 2001


I made a perl library with some function that use RRDs.
One script running from command line that use my library, run OK, but a CGI
script running on my webserver that use my library can't run. The log show:

Can't locate RRDs.pm in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at
/usr/lib/perl5/5.6.0/SGI/interface.pm line 4.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.6.0/SGI/interface.pm
line 4.
Compilation failed in require at /home/sgi/http/cgi/bin/init.cgi line 5.
BEGIN failed--compilation aborted at /home/sgi/http/cgi/bin/init.cgi line 5.
[Thu Sep 20 16:29:38 2001] [error] [client] Premature end of
script headers: /home/sgi/http/cgi/bin/init.cgi

the library is called interface.pm, and is located in the directory

package SGI::interface;

use RRDs;
use strict;
use Time::Local;
use Exporter ();
use vars qw($VERSION @ISA @EXPORT);

$VERSION = 1.0.0;
@ISA     = qw(Exporter);
@EXPORT  = qw(

     # my functions list #


# my functions #


any body know why ?

Thanks in advance,

Alejandro Galue.

Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the rrd-users mailing list