Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- RRD confusion
- Stan Brown
June 20, 2005, 9:36 pm
rate this thread
I've been using a script called weathergraph on a FreeBSD box for years.
Last week I upgraded the machine, and the script stopped working.
One of the "dirty little secrets" about FreeBSD is it's poor handling of
perl upgrades. I've found that I have to reinstall all the modules I need,
after perl is upgraded on these machine. Now normally this is not a huge
deal, as I can do it the the portupgrade tool.
However in this case, it looks like this script uses a module not in the
FreeBSD ports system: Here's the line:
I'm confused as to what module I need to get from CPAM to hand el this
Can someone enlighten me, please?
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
Re: RRD confusion
: However in this case, it looks like this script uses a module not in the
: FreeBSD ports system: Here's the line:
: use RRDs;
: I'm confused as to what module I need to get from CPAM to hand el this
: Can someone enlighten me, please?
Not sure if it's available on CPAN, but according to the FAQ for
webminstats[*] on SF, you need rrdtool:
Hope this helps,
...wherever the Welfare State is involved, the moral precept, "Thou shalt not
steal," becomes altered to say: "Thou shalt not steal, except for what thou
deemest to be a worthy cause, where thou thinkest that thou canst use the loot
for a better purpose than wouldst the victim of the theft." -- F. A. Harper
Re: RRD confusion
Depending on how you installed rrdtool itself, you might/should already
have RRDs.pm - it just won't be in your PERL5LIB path. The perl modules
were installed as part of the rrdtool installation. On my system the
perl modules are in /usr/local/rrdtool/lib/perl:
dev:/usr/local/rrdtool/lib/perl $ ls
drwxr-xr-x 3 root root 4096 Oct 10 2004 .
drwxr-xr-x 3 root root 4096 Oct 10 2004 ..
-rw-r--r-- 1 root root 4514 Oct 10 2004 RRDp.pm
-rw-r--r-- 1 root root 3514 Oct 10 2004 RRDs.pm
drwxr-xr-x 3 root root 4096 Oct 10 2004 auto
e.g. if I run this command:
$ PERL5LIB=/usr/local/rrdtool/lib/perl perldoc RRDs
I get the docs. If you want to use the module you can of course alter
PERL5LIB, "use lib", etc. according to taste.
pkent 77 at yahoo dot, er... what's the last bit, oh yes, com
Remove the tea to reply
- » Failed to invoke SOAP::Lite object with two parameters
- — Next thread in » PERL Modules Announcements
- » HTML::Element->right/->look_down lose, I need to walk the tree
- — Previous thread in » PERL Modules Announcements