Re: [Nfsen-discuss] nftrack can't find librrd.so.2
Netflow visualisation and investigation tool
Brought to you by:
phaag
|
From: Peter H. <ha...@sw...> - 2006-03-29 06:08:05
|
-----BEGIN PGP SIGNED MESSAGE-----
Hi Chris,
- --On March 28, 2006 14:34:25 -0800 Chris Waters <CW...@je...> wrote:
| Has anyone else run into this issue? I am running nfsen 1.2.4 on Fedora
| Core 4 X86_64.
|
| nftrack -I -d /var/netflowdata/nfsen/profiles/live/ports
| nftrack: error while loading shared libraries: librrd.so.2: cannot open
| shared object file: No such file or directory
|
| The do_compile seems to run fine. No errors reported. But I can't seem
| to create the port-dbs.
|
| [cwaters@nms PortTracker-v.e-1.5]$ sudo ./do_compile
| + NFDUMP=/var/build/netflow/nfdump-1.5
| + RRDINCLUDE=/usr/local/rrdtool-1.2.11/include
| + LIBRRD=/usr/local/rrdtool-1.2.11/lib
| + NFDUMP_OBJ='/var/build/netflow/nfdump-1.5/util.o
| /var/build/netflow/nfdump-1.5/nftree.o
| /var/build/netflow/nfdump-1.5/grammar.o
| /var/build/netflow/nfdump-1.5/scanner.o
| /var/build/netflow/nfdump-1.5/nffile.o
| /var/build/netflow/nfdump-1.5/nf_common.o
| /var/build/netflow/nfdump-1.5/panonymizer.o
| /var/build/netflow/nfdump-1.5/rijndael.o
| /var/build/netflow/nfdump-1.5/ipconv.o'
| + INCLUDES='-I /var/build/netflow/nfdump-1.5
| -I/usr/local/rrdtool-1.2.11/include'
| + CC='gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
| -D_FILE_OFFSET_BITS=64 -g -O2'
| + gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
| -D_FILE_OFFSET_BITS=64 -g -O2 -c -I /var/build/netflow/nfdump-1.5
| -I/usr/local/rrdtool-1.2.11/include nftrack.c
| + gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
| -D_FILE_OFFSET_BITS=64 -g -O2 -c -I /var/build/netflow/nfdump-1.5
| -I/usr/local/rrdtool-1.2.11/include nftrack_rrd.c
| + gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
| -D_FILE_OFFSET_BITS=64 -g -O2 -c -I /var/build/netflow/nfdump-1.5
| -I/usr/local/rrdtool-1.2.11/include nftrack_stat.c
| + gcc -o nftrack nftrack.o nftrack_rrd.o nftrack_stat.o
| /var/build/netflow/nfdump-1.5/util.o
| /var/build/netflow/nfdump-1.5/nftree.o
| /var/build/netflow/nfdump-1.5/grammar.o
| /var/build/netflow/nfdump-1.5/scanner.o
| /var/build/netflow/nfdump-1.5/nffile.o
| /var/build/netflow/nfdump-1.5/nf_common.o
| /var/build/netflow/nfdump-1.5/panonymizer.o
| /var/build/netflow/nfdump-1.5/rijndael.o
| /var/build/netflow/nfdump-1.5/ipconv.o -L/usr/local/rrdtool-1.2.11/lib
| -lrrd -L/usr/X11R6/lib -L/usr/local/lib
|
| Thanks in advance and let me know if any additional information is
| needed.
There are linker and loader issues. When compiling nftrack you tell the
linker where to find your rrd library by using -L arguments. If this is a dynamic
library, the dynamic linker needs to know where the library is located when running
nftrack. As your library seems to a dynamic one, which is not located in a default
path (/usr/local/rrdtool-1.2.11/lib) you need to tell your dynamic linker where to look
for the library by adding this path with "-rpath /usr/local/rrdtool-1.2.11/lib" on
the last line in do_compile. See ld(1) and ldconfig(1).
And last but not least make sure your 1.2.11 rrd library is patched according the
patch coming with nftrack, otherwise nftrack will seg fault. Alternatively use rrd
library 1.2.12.
- Peter
|
|
|
| Chris Waters
| Technology Services: Networks
| WAN/LAN Technician
|
| JELD-WEN, inc.
| Information Systems
| cw...@je...
|
| RELIABILITY for real life(r)
|
| This correspondence is for the named person's use only. It may contain
| confidential or legally privileged information and is intended solely
| for the named addressee. If you receive this correspondence in error,
| please notify the sender and delete it from your system. You must not
| disclose, copy or rely on any part of this correspondence if you are not
| the intended recipient.
|
|
|
|
|
- --
_______ SWITCH - The Swiss Education and Research Network ______
Peter Haag, Security Engineer, Member of SWITCH CERT
PGP fingerprint: D9 31 D5 83 03 95 68 BA FB 84 CA 94 AB FC 5D D7
SWITCH, Limmatquai 138, CH-8001 Zurich, Switzerland
E-mail: pet...@sw... Web: http://www.switch.ch/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iQCVAwUBRCokNP5AbZRALNr/AQHyPwQAjvmd8KnqwosPJekQGbEhDieddWhMyxvx
QQngObuwV+iKsnpWKJzAJ9PTo1j3gzJ74yXy1Vo1ovGR2mm6Iv7ulFk7ZjP0dQaI
xVkbmUGtpGeDafTh74mGlOUadLtFyzGRd0g3I6tDO1wRTFNnp6WMMOKzRuA/iMzW
4avQBtm5AU8=
=yON3
-----END PGP SIGNATURE-----
|