Projekte‎ > ‎Perl‎ > ‎

RRDTool v1.4.8 Win32 Binaries + RRDs for Active State Perl 5.16.3 Windows

Current stable release of RRDTool with bindings for ActiveState Perl v5.16.3 and Windows binarys.

(currently testing on Windows 2008 R2 (x64) Server) with Active State Perl 5.16.3)

To install RRDs: download "RRDs_1_4008.ppd" and "RRDs_1_4008.tar.gz" then in download directory run:
ppm install RRDs_1_4008.ppd 

###############################################################################################
Self hint vor next Compiling, If at comiling this error appears:
fatal error C1083: Cannot open include file: '../rrd_config.h': No such file or directory pngsize.c


There's Because the rrd_config.h file is lack for Win32 building. (via http://stackoverflow.com/questions/16962257/failing-to-compile-rrd)
In Linux, that file can be created by configure process. 
I get rid of this problem by manually modifying the source code. Just replace the block of code in rrd_restore.c:

#if SIZEOF_TIME_T == 4
        temp = strtol((char *)text,NULL, 0);
#elif SIZEOF_TIME_T == 8
        temp = strtoll((char *)text,NULL, 0);        
#else
#error "Don't know how to deal with TIME_T other than 4 or 8 bytes"
#endif
with:

temp = strtoll((char *)text,NULL, 0);
and delete the include statement in rrd_create.c:

#include "../rrd_config.h"
Then the building proccess can be completed with no error.

###############################################################################################
# About creating Perl-Module on windows (on my Environment):
# Edit Makefile, set Perl directory, SDK directory...)
# Set Parth 
set PATH=%PATH%;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\

# create Makefie:
        perl Makefile.PL

#make:
        nmake

# make ppd:
        nmake ppd

# copy extra needed dlls to \bindings\perl-shared\blib\arch\auto\RRDs
#building ppd:
tar cvf RRDs_1_4008.tar blib
gzip --best RRDs_1_4008.tar

# edit ppd to match (in this case  RRDs_1_4008.tar.gz)
###############################################################################################
ċ
RRDs_1_4008.ppd
(0k)
Christian Krauße,
01.07.2014, 08:12
ċ
RRDs_1_4008.tar.gz
(2742k)
Christian Krauße,
02.07.2014, 01:00
ċ
RRDs_1_4008_Release_Bin.zip
(2576k)
Christian Krauße,
01.07.2014, 08:12
Comments