• This forum has a zero tolerance policy regarding spam. If you register here to publish advertising, your user account will be deleted without further questions.

conntrack-tools lassen sich nciht installieren

feiaweng

New Member
Hallo Leute,

ich möchte gerne die conntrack-tools installieren. Habe folgendes Problem:
Ab und zu verursacht ein Kunde auf meinem Server zu gewissen Uhrzeiten viel Traffic. Das Herausfinden, auf welchem Port das passiert ist manchma mühsam. Eigentlich kann es nur ftp, smtp, oder http sein. Ich sehe zwar in Munin, dass es smtp ist, aber nicht wer es war. Ich kann im maillog gucken, ob eine Meldung erscheint wie, "queue file limit exceeded". Gut wäre, wenn ich unter /proc/net/ip_conntrack finden würde, wer das war. Obwohl da auch nur einzelne Pakete zu sehen sind. Da steht ja nicht drin, die IP hat 30 MB verschicken wollen. Uhrzeit und Datum gibt es auch nicht. Daher wollte ich die conntrack-tools installieren. conntrack-tools: Netfilter's connection tracking userspace tools
Mein OS ist Centos 5. Allerdings kommt beim compilieren von libnfnetlink folgende Meldung:
Code:
./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/libnfnetlink/Makefile
config.status: creating utils/Makefile
config.status: creating libnfnetlink.pc
config.status: executing depfiles commands
Code:
make
Making all in src
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/src'
make[1]: FÌr das Ziel »all« ist nichts zu tun.
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/src'
Making all in include
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/include'
Making all in libnfnetlink
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[2]: FÌr das Ziel »all« ist nichts zu tun.
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/include'
make[2]: FÌr das Ziel »all-am« ist nichts zu tun.
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/include'
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/include'
Making all in utils
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/utils'
make[1]: FÌr das Ziel »all« ist nichts zu tun.
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/utils'
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40'
make[1]: FÌr das Ziel »all-am« ist nichts zu tun.
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40'
Code:
make install
aking install in src
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/src'
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c  'libnfnetlink.la' '/usr/local/lib/libnfnetlink.la'
/usr/bin/install -c .libs/libnfnetlink.so.0.2.0 /usr/local/lib/libnfnetlink.so.0.2.0
(cd /usr/local/lib && { ln -s -f libnfnetlink.so.0.2.0 libnfnetlink.so.0 || { rm -f libnfnetlink.so.0 && ln -s libnfnetlink.so.0.2.0 libnfnetlink.so.0; }; })
(cd /usr/local/lib && { ln -s -f libnfnetlink.so.0.2.0 libnfnetlink.so || { rm -f libnfnetlink.so && ln -s libnfnetlink.so.0.2.0 libnfnetlink.so; }; })
/usr/bin/install -c .libs/libnfnetlink.lai /usr/local/lib/libnfnetlink.la
/usr/bin/install -c .libs/libnfnetlink.a /usr/local/lib/libnfnetlink.a
chmod 644 /usr/local/lib/libnfnetlink.a
ranlib /usr/local/lib/libnfnetlink.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: FÌr das Ziel »install-data-am« ist nichts zu tun.
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/src'
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/src'
Making install in include
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/include'
Making install in libnfnetlink
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[3]: Entering directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[3]: FÌr das Ziel »install-exec-am« ist nichts zu tun.
test -z "/usr/local/include/libnfnetlink" || /bin/mkdir -p "/usr/local/include/libnfnetlink"
 /usr/bin/install -c -m 644 'libnfnetlink.h' '/usr/local/include/libnfnetlink/libnfnetlink.h'
 /usr/bin/install -c -m 644 'linux_nfnetlink.h' '/usr/local/include/libnfnetlink/linux_nfnetlink.h'
 /usr/bin/install -c -m 644 'linux_nfnetlink_compat.h' '/usr/local/include/libnfnetlink/linux_nfnetlink_compat.h'
make[3]: Leaving directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/include/libnfnetlink'
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/include'
make[3]: Entering directory `/tmp/libnfnetlink-0.0.40/include'
make[3]: FÌr das Ziel »install-exec-am« ist nichts zu tun.
make[3]: FÌr das Ziel »install-data-am« ist nichts zu tun.
make[3]: Leaving directory `/tmp/libnfnetlink-0.0.40/include'
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/include'
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/include'
Making install in utils
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40/utils'
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40/utils'
make[2]: FÌr das Ziel »install-exec-am« ist nichts zu tun.
make[2]: FÌr das Ziel »install-data-am« ist nichts zu tun.
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40/utils'
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40/utils'
make[1]: Entering directory `/tmp/libnfnetlink-0.0.40'
make[2]: Entering directory `/tmp/libnfnetlink-0.0.40'
make[2]: FÌr das Ziel »install-exec-am« ist nichts zu tun.
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
 /usr/bin/install -c -m 644 'libnfnetlink.pc' '/usr/local/lib/pkgconfig/libnfnetlink.pc'
make[2]: Leaving directory `/tmp/libnfnetlink-0.0.40'
make[1]: Leaving directory `/tmp/libnfnetlink-0.0.40'
möchte ich danach libnetfilter_conntrack compilieren, meint er libnfnetlink >=0.0.39 wäre nicht installiert.
Habt ihr eine Idee?
Oder gibt es ein anderes Tool?

gruss Ralf
 
Last edited by a moderator:
Hi,

ich habe es versucht mit
Code:
./configure --prefix=/usr/lib
Es kam auch keine Fehlermeldung.
Wenn ich dannach die tools installieren will mit:
Code:
cd libnetfilter_conntrack-0.0.99
./configure --prefix=/usr
kommt am ende die meldung
Code:
configure: error: Cannot find libnfnetlink >= 0.0.39
entweder die libs sind nicht installiert worden, oder die libnetfilter_conntrack findet sie nicht.

Code:
locate libnfnetlink
########
/usr/include/libnfnetlink
/usr/lib64/include/libnfnetlink
/usr/lib64/include/libnfnetlink/libnfnetlink.h
/usr/lib64/include/libnfnetlink/linux_nfnetlink.h
/usr/lib64/include/libnfnetlink/linux_nfnetlink_compat.h
/usr/lib64/lib/libnfnetlink.a
/usr/lib64/lib/libnfnetlink.la
/usr/lib64/lib/libnfnetlink.so
/usr/lib64/lib/libnfnetlink.so.0
/usr/lib64/lib/libnfnetlink.so.0.2.0
/usr/lib64/lib/pkgconfig/libnfnetlink.pc
/usr/local/include/libnfnetlink
/usr/local/include/libnfnetlink/libnfnetlink.h
/usr/local/include/libnfnetlink/linux_nfnetlink.h
/usr/local/include/libnfnetlink/linux_nfnetlink_compat.h
/usr/local/lib/libnfnetlink.a
/usr/local/lib/libnfnetlink.la
/usr/local/lib/libnfnetlink.so
/usr/local/lib/libnfnetlink.so.0
/usr/local/lib/libnfnetlink.so.0.2.0
/usr/local/lib/pkgconfig/libnfnetlink.pc
##################
 
Last edited by a moderator:
habs geschafft

hi,

danke für die info.
wenn ich den pfad mit angebe, geht es.
Code:
./configure --preffix=/usr/ --libdir=/usr/lib64

gruss ralf
 
Last edited by a moderator:
Back
Top