[smokeping-users] Minimum rrdtool for Smokeping 2.2.2?

Sorrell, Al Al_Sorrell at troweprice.com
Tue Sep 18 15:08:57 CEST 2007


Tobi,
Sorry it's been awhile before I got back to this. I found some
"interesting" beahvior in this regard.
Using Perl 5.8.5 it does work as you describe - howver, using 5.8.7 it
does not:

Software error:
Can't locate loadable object for module RRDs in @INC (@INC contains:
/export/appl/smokeping-2.2.3/lib /export/appl/rrdtool-1.2.23/lib/perl
/usr/local/lib/perl5/5.8.5/sun4-solaris /usr/local/lib/perl5/5.8.5
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris
/usr/local/lib/perl5/site_perl/5.8.5 /usr/local/lib/perl5/site_perl .)
at /export/appl/smokeping-2.2.3/lib/Smokeping.pm line 13
Compilation failed in require at
/export/appl/smokeping-2.2.3/lib/Smokeping.pm line 13.
BEGIN failed--compilation aborted at
/export/appl/smokeping-2.2.3/lib/Smokeping.pm line 13.
Compilation failed in require at
/export/appl/apache/htdocs/net/priv/cgi-bin/smokeping.cgi line 12.
BEGIN failed--compilation aborted at
/export/appl/apache/htdocs/net/priv/cgi-bin/smokeping.cgi line 12

The only difference is in smokeping.cgi - it works fine under 5.8.7 if I
use:
use lib qw(/export/appl/rrdtool-1.2.23/lib/perl/5.8.7);

And fails with the following which DOES work under 5.8.5:
use lib qw(/export/appl/rrdtool-1.2.23/lib/perl); 

These installations are on two different Solaris 2.8 boxes:
On the 5.8.5 box:
$ perl -v

This is perl, v5.8.5 built for sun4-solaris

$ ls /export/appl/rrdtool-1.2.23/lib/perl
./      ../     5.8.5/

netapps at tcnetops [/export/appl/apache/htdocs/net/priv/cgi-bin]
$ ls /export/appl/rrdtool-1.2.23/lib/perl/5.8.5
./             ../            RRDp.pm        sun4-solaris/

==========
On the 5.8.7 box:
$ perl -v

This is perl, v5.8.7 built for sun4-solaris
$ ls /export/appl/rrdtool-1.2.23/lib/perl
./      ../     5.8.7/

$ ls /export/appl/rrdtool-1.2.23/lib/perl/5.8.7
./             ../            RRDp.pm        sun4-solaris/

Any thoughts?
Thanks,
Al
> -----Original Message-----
> From: Tobias Oetiker [mailto:tobi at oetiker.ch] 
> Sent: Friday, September 07, 2007 5:37 PM
> To: Sorrell, Al
> Cc: smokeping-users at lists.oetiker.ch
> Subject: RE: [smokeping-users] Minimum rrdtool for Smokeping 2.2.2?
> 
> Al,
> 
> > to:
> > use lib qw(/export/appl/rrdtool-1.2.23/lib/perl);
> > use lib qw(/export/appl/smokeping-2.2.3/lib);
> 
> this is good
> 
> > However, when I looked back at the rrdtool install log, it 
> had actually
> > placed the stuff one level deeper:
> > root at netopsdr [/export/appl/rrdtool-1.2.23/lib/perl/5.8.7]
> > # ls
> > ./             ../            RRDp.pm        sun4-solaris/
> >
> > Changing the one line corrected the problem:
> > use lib qw(/export/appl/rrdtool-1.2.23/lib/perl/5.8.7)
> 
> this is not necessary ... since perl should be looking in the
> subdirectory with its version automatically ... even better, it
> will look into the architecture specific directory too ... so you
> can have rrd modules for multiple architectures and perl versions
> install in the same tree, putting just
> 
> use lib qw(/export/appl/rrdtool-1.2.23/lib/perl);
> 
> into your script and run the same script on different versions of
> perl and different cpus ...
> 
> cheers
> tobi
> 
> 
> -- 
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
> http://it.oetiker.ch tobi at oetiker.ch ++41 62 213 9902
> 
> 

The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail.



More information about the smokeping-users mailing list