[rrd-users] Help with Libraries....

tony tony at ukcube.com
Mon Jun 6 12:34:34 MEST 2005


I am just installing RRD on my Fedora Core 3 Desktop, The install went 
ok i did the following:

./configure --prefix=$INSTALL_DIR
make site-perl-install
make install

I ran the Example scripts and all was ok.

Next is where i hit my problem, I tried to write some scripts to monitor 
load, but i get this error:

[root at desktop rrdtool-1.2.9]# vi /var/rrd/scripts/rrd_load_graph.pl
[root at desktop rrdtool-1.2.9]# /var/rrd/scripts/rrd_load_graph.pl
Can't locate RRDs.pm in @INC (@INC contains: 
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
/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.5 /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/rrd/scripts/rrd_load_graph.pl line 5.
BEGIN failed--compilation aborted at /var/rrd/scripts/rrd_load_graph.pl line

I know that this is because of the libraries. I have edited the script 
and put this in the top now.
#!/usr/bin/perl -w

use strict;
#use lib qw( /usr/local/rrdtool-1.2.9/lib/perl );
use RRDs;

But how do i set it up so i dont have top put the paths, so i can just 
include the libraries with this command

use RRDs;

Can anyone advise please?

Kind Regards

Tony



--
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://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list