[rrd-users] Re: RRD perl module problems

zajaco0 at engr.uky.edu zajaco0 at engr.uky.edu
Tue Oct 19 19:18:45 MEST 2004


> 	Your perl "use" statement needs to be:
> 
> 			Use RRDs;
> 
> 
> Cheers,
> 
> Richard.

This was actually typed wrong in the email.  My CUGrapher.pl file actually reads
"use RRDs;"



Quoting Mike Schilli <m at perlmeister.com>:

> In rrdtool-1.0.xx, try
> 
>     cd perl-shared
>     perl Makefile.PL
>     make install
> 
> -- Mike
> 
> Mike Schilli
> m at perlmeister.com

The output of the commands is as follows:

[root at netflow perl-shared]# perl Makefile.PL
Writing Makefile for RRDs
[root at netflow perl-shared]# make install
gcc -c -I.. -I../src -I../gd1.3 -fno-strict-aliasing -I/usr/local/include
-DHAVE_CONFIG_H -O2 -march=i386 -mcpu=i686   -DVERSION=\"1.000491\"
-DXS_VERSION=\"1.000491\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE
-DPERLPATCHLEVEL=6 RRDs.c
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
LD_RUN_PATH="" gcc  -shared -L/usr/local/lib RRDs.o -L../src/.libs/
-lrrd_private   -lm -o blib/arch/auto/RRDs/RRDs.so
chmod 755 blib/arch/auto/RRDs/RRDs.so
cp RRDs.bs blib/arch/auto/RRDs/RRDs.bs
chmod 644 blib/arch/auto/RRDs/RRDs.bs
Manifying blib/man3/RRDs.3pm
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree
Installing /usr/share/man/man3/RRDs.3pm
Writing /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/RRDs/.packlist
Appending installation info to /usr/lib/perl5/5.6.1/i386-linux/perllocal.pod



from the output, i assume the module was put into
/usr/lib/perl5/site_perl/5.6.1/i386-linux/.  I checked for the RRDs module in
this directory and ls -la RRDs.pm shows:


-r--r--r--    1 root     root         3514 Aug  8 06:58
/usr/lib/perl5/site_perl/5.6.1/i386-linux/RRDs.pm


Error from apache error_log again:
Can't locate loadable object for module RRDs in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 
/usr/lib/perl5/site_perl/5.6.1/i386-linux

shows that the /usr/lib/perl5/site_perl/5.6.1/i386-linux is being searched for
the RRDs.pm module.


~Zach

--
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