[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Bigsister-general] Purpose of this code for rrdtool


So, I can prove that the RRD modules are in perl's path like this,
right?

# perl -d

Loading DB routines from perl5db.pl version 1.23
Editor support available.

Enter h or `h h' for help, or `man perldebug' for more help.

print "Hello World\n";
main::(-:1):    print "Hellow olrd\n";
  DB<1> x @INC
0  '/usr/local/lib/perl5/5.8.3/sun4-solaris'
1  '/usr/local/lib/perl5/5.8.3'
2  '/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris'
3  '/usr/local/lib/perl5/site_perl/5.8.3'
4  '/usr/local/lib/perl5/site_perl'
5  '.'
  DB<2> q
# ls -l /usr/local/lib/perl5/5.8.3/sun4-solaris/RRD*
/usr/local/lib/perl5/5.8.3/RRD*
/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/RRD*
/usr/local/lib/perl5/site_perl/5.8.3/RRD*
/usr/local/lib/perl5/site_perl/RRD*
/usr/local/lib/perl5/5.8.3/sun4-solaris/RRD*: No such file or directory
/usr/local/lib/perl5/5.8.3/RRD*: No such file or directory
/usr/local/lib/perl5/site_perl/RRD*: No such file or directory
-r--r--r--   1 root     other       4514 Apr  6 17:38
/usr/local/lib/perl5/site_perl/5.8.3/RRDp.pm
-rw-r--r--   1 root     other       3514 Jul 25 12:49
/usr/local/lib/perl5/site_perl/5.8.3/RRDs.pm
-r--r--r--   1 root     other       3514 Apr  6 17:38
/usr/local/lib/perl5/site_perl/5.8.3/sun4-solaris/RRDs.pm

If it's in the path, then why does this code fail?  What debug code
could I use to test inside Big Sister?

> -----Original Message-----
> From: Niels Baggesen [mailto:suppressed 
> Sent: Friday, September 03, 2004 4:02 AM
> To: Hearn, Stan (CEI-ATL)
> Cc: Big Sister Discussion List (E-mail)
> Subject: Re: [Bigsister-general] Purpose of this code for rrdtool
> 
> 
> On Thu, Sep 02, 2004 at 08:14:24PM -0400, Hearn, Stan (CEI-ATL) wrote:
> > I'm still having problems getting graphing to work on a Solaris 9
> > machine.  What is the purpose of this code and why is it 
> failing?  $@
> > returns true.
> > 
> >     eval {
> >         require RRDs;
> >         $self->add_feature_provider( "rrd" );
> >     };
> >     if( $@ ) {
> >         BigSister::common::log( "notice", "RRDTool's perl 
> module is not
> > present - not using perl bindings" );
> >     }
> > 
> > I've placed debug code in there and rrdtool is in the path.
> 
> This has nothing to do with rrdtool being in the path. It is testing
> whether the perl RRDs module is within perls @INC path, so that it can
> use these in place of the rrdtool program. Using the perl module is
> significantly faster, as it avoids the fork and exec of rrdtool.
> 
> /Niels


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&opÌk
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.