[rrd-users] RRDs perl library not on CPAN?

Alceu R. de Freitas Jr. glasswalk3r at yahoo.com.br
Thu Sep 10 23:26:41 CEST 2015

I agree with Maxwell... there are plenty of distributions on CPAN in the same situation.
On the other hand, you might get a higher audience to validate your code by people using CPAN with CPAN::Reporter enabled.
I'm not acquainted with XS anyway, but the trick is to find out if the current RRDTool libraries that are available have the correct version to work with the Perl bindings. Not sure how to implement it anyway.
I did a quick check on Makefile.PL and I think that Devel::CheckOS (http://search.cpan.org/~dcantrell/Devel-CheckOS-1.76/lib/Devel/CheckOS.pm) might help checking specifics for O.S. and even generating a proper error if the O.S. is unsupported. Maybe Config module might have the proper directories for settings some of the paths definitions that you have along the file too.
Another tip is to check if Strawberry Perl cannot offer better support on Windows for definitions of compilers.

If everything else fails, you could offer to install RRDTool by downloading the source and compiling it. RRDTool-OO distribution (http://cpansearch.perl.org/src/MSCHILLI/RRDTool-OO-0.36/Makefile.PL) does exactly that (although not very elegant way IMHO).

It looks like a lot of work but I think it's worth... I'm willing on giving a hand with the non-XS related suggestions. :-)
      De: Maxwell Carey <mcarey at ucar.edu>
 Para: Tobias Oetiker <tobi at oetiker.ch> 
Cc: RRDtool users <rrd-users at lists.oetiker.ch>; "debian-perl at lists.debian.org" <debian-perl at lists.debian.org> 
 Enviadas: Quinta-feira, 10 de Setembro de 2015 12:57
 Assunto: Re: [rrd-users] RRDs perl library not on CPAN?

Today Cosimo Streppone wrote:

> I started out by including RRD::Simple, then I noticed it uses
> RRDs.pm under the hood, so I converted my code to it.
> I searched for RRDs on the CPAN, but I can't find it,
> not on metacpan nor on search.cpan.org.
> Doesn't that make CPAN distributions that need to depend
> on RRDs/RRDtool automatically broken?

No more broken than any Perl module that has a dependency on an external library or binary, e.g. SNMP.pm, XML::LibXML, most of the DBD::* modules, the list goes on.

If you try to install one of these from CPAN without first installing the dependency, the build will break. This makes sense, if you think about it. I wouldn't expect DBD::mysql to install properly if I didn't have the MySQL client installed on my system, for example.

rrd-users mailing list
rrd-users at lists.oetiker.ch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/rrd-users/attachments/20150910/9f9f264c/attachment.html>

More information about the rrd-users mailing list