[rrd-users] RRDs.pm problem.

Guilherme Cox cox at computer.org
Tue Nov 4 00:19:57 CET 2008


Hi all,

I am trying to compile a version of rrdtool. I need the RRDs.pm too.

I tryed the lastest version, 1.3.4, and the 1.2.27.

In both versions, when I've tryed to execute the command:
root at saturn:/home/cox# perl -MRRDs -le 'print q(ok!)'
Can't load '/usr/lib/perl5/site_perl/5.8.7/i486-linux/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.4: cannot open shared object file: No such
file or directory at /usr/lib/perl5/5.8.7/i486-linux/DynaLoader.pm
line 230.
 at -e line 0
Compilation failed in require.
BEGIN failed--compilation aborted.
root at saturn:/home/cox#

The rrdtool is working, because I can use it with ntop (from
ntop.org). However, I need to use the perl module and I can't figure
out what I am doing wrong.

I saw an email that recommends to use the version 1.2.7, however the
error is still happening.

I went to rddtool-version/bindings/perl-shared ahd executed the setps
described in README file:

root at saturn:/home/cox/rrdtool-1.2.27/bindings/perl-shared# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for RRDs
root at saturn:/home/cox/rrdtool-1.2.27/bindings/perl-shared# make test
cp RRDs.pm blib/lib/RRDs.pm
cp ntmake.pl blib/lib/ntmake.pl
/usr/bin/perl5.8.7 /usr/lib/perl5/5.8.7/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.8.7/ExtUtils/typemap  RRDs.xs > RRDs.xsc && mv
RRDs.xsc RRDs.c
cc -c  -I../../src -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686
 -DVERSION=\"1.2027\" -DXS_VERSION=\"1.2027\" -fPIC
"-I/usr/lib/perl5/5.8.7/i486-linux/CORE"  -DPERLPATCHLEVEL=8 RRDs.c
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
LD_RUN_PATH="/usr/local/lib" cc  -shared -L/usr/local/lib RRDs.o
-L../../src/.libs/  -lrrd  -o blib/arch/auto/RRDs/RRDs.so   -lm -lpng
-lz -lfreetype
chmod 755 blib/arch/auto/RRDs/RRDs.so
cp RRDs.bs blib/arch/auto/RRDs/RRDs.bs
chmod 644 blib/arch/auto/RRDs/RRDs.bs
PERL_DL_NONLAZY=1 /usr/bin/perl5.8.7 "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base....Can't load
'/home/cox/rrdtool-1.2.27/bindings/perl-shared/blib/arch/auto/RRDs/RRDs.so'
for module RRDs: librrd.so.2: cannot open shared object file: No such
file or directory at /usr/lib/perl5/5.8.7/i486-linux/DynaLoader.pm
line 230.
 at t/base.t line 20
Compilation failed in require at t/base.t line 20.
BEGIN failed--compilation aborted at t/base.t line 20.
t/base....dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-7
        Failed 7/7 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/base.t       2   512     7   13 185.71%  1-7
Failed 1/1 test scripts, 0.00% okay. 7/7 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2


It seems that it can't find the librrd. I tryed to change Makefile to
force the place where I know it's, but it didn't help, I've got the
same error.

Thanks for any help.

Guilherme



More information about the rrd-users mailing list