tcpreplay installation failed, libpcap/collect -
i not install tcpreplay on rhel 6.6
when try run ./configure got following error
checking inet_addr... yes checking libpcap... no configure: error: libpcap not found [root@tcpreplay-4.1.0]# ldconfig -p | grep libpca libpcap.so.1 (libc6,x86-64) => /usr/lib64/libpcap.so.1 [root@tcpreplay-4.1.0]#
ldconfig output shows there installed libpcap
i tried --with-libpcap=/usr/lib64 option got same error.
i have rhel 6.6 similar config, uninstalled tcpdump, libpcap yum. installed latest libpcap , tcpdump tarball without error. got no error on ./configure command of tcpreplay tarball. (in installation libpcap installed /usr/local/lib)
but when try make got following error.
/usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate': /directory/libpcap-1.7.4/./pcap-dbus.c:185: undefined reference `dbus_connection_open' /directory/libpcap-1.7.4/./pcap-dbus.c:191: undefined reference `dbus_bus_register' /directory/libpcap-1.7.4/./pcap-dbus.c:230: undefined reference `dbus_bus_add_match' /directory/libpcap-1.7.4/./pcap-dbus.c:231: undefined reference `dbus_error_is_set' /directory/libpcap-1.7.4/./pcap-dbus.c:232: undefined reference `dbus_error_free' /directory/libpcap-1.7.4/./pcap-dbus.c:235: undefined reference `dbus_bus_add_match' /directory/libpcap-1.7.4/./pcap-dbus.c:236: undefined reference `dbus_error_is_set' /directory/libpcap-1.7.4/./pcap-dbus.c:238: undefined reference `dbus_error_free' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_cleanup': /directory/libpcap-1.7.4/./pcap-dbus.c:143: undefined reference `dbus_connection_unref' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate': /directory/libpcap-1.7.4/./pcap-dbus.c:169: undefined reference `dbus_bus_get' /directory/libpcap-1.7.4/./pcap-dbus.c:178: undefined reference `dbus_error_free' /directory/libpcap-1.7.4/./pcap-dbus.c:227: undefined reference `dbus_connection_set_max_received_size' /directory/libpcap-1.7.4/./pcap-dbus.c:176: undefined reference `dbus_bus_get' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_cleanup': /directory/libpcap-1.7.4/./pcap-dbus.c:143: undefined reference `dbus_connection_unref' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_activate': /directory/libpcap-1.7.4/./pcap-dbus.c:193: undefined reference `dbus_error_free' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_write': /directory/libpcap-1.7.4/./pcap-dbus.c:114: undefined reference `dbus_message_demarshal' /directory/libpcap-1.7.4/./pcap-dbus.c:120: undefined reference `dbus_connection_send' /directory/libpcap-1.7.4/./pcap-dbus.c:121: undefined reference `dbus_connection_flush' /directory/libpcap-1.7.4/./pcap-dbus.c:123: undefined reference `dbus_message_unref' /directory/libpcap-1.7.4/./pcap-dbus.c:116: undefined reference `dbus_error_free' /usr/local/lib/libpcap.a(pcap-dbus.o): in function `dbus_read': /directory/libpcap-1.7.4/./pcap-dbus.c:70: undefined reference `dbus_connection_read_write' /directory/libpcap-1.7.4/./pcap-dbus.c:66: undefined reference `dbus_connection_pop_message' /directory/libpcap-1.7.4/./pcap-dbus.c:83: undefined reference `dbus_message_is_signal' /directory/libpcap-1.7.4/./pcap-dbus.c:88: undefined reference `dbus_message_marshal' /directory/libpcap-1.7.4/./pcap-dbus.c:100: undefined reference `dbus_free' collect2: ld returned 1 exit status make[3]: *** [tcpreplay] error 1 make[3]: leaving directory `/directory/tcpreplay-4.1.0/src' make[2]: *** [all-recursive] error 1 make[2]: leaving directory `/directory/tcpreplay-4.1.0/src' make[1]: *** [all] error 2 make[1]: leaving directory `/directory/tcpreplay-4.1.0/src' make: *** [all-recursive] error 1
do have idea / solution install tcpreplay
thanks
sudo apt-get install tcpreplay
Comments
Post a Comment