tcpreplay安装失败,libpcap / collect

时间:2015-08-05 11:25:15

标签: tcpreplay

我无法在RHEL 6.6上安装tcpreplay

当我尝试运行./configure时出现以下错误

checking for inet_addr... yes
checking for 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输出显示已安装libpcap

我也试过--with-libpcap = / usr / lib64选项,但我得到了同样的错误。

我有另一个RHEL 6.6,配置类似,我卸载了tcpdump,libpcap和yum。从tarball安装最新的libpcap和tcpdump,没有错误。我没有在tcpreplay tarball的./configure命令上出错。 (在此安装中,libpcap安装在/ usr / local / lib中)

但是当我试图让我得到以下错误时。

/usr/local/lib/libpcap.a(pcap-dbus.o): In function `dbus_activate':
/directory/libpcap-1.7.4/./pcap-dbus.c:185: undefined reference to `dbus_connection_open'
/directory/libpcap-1.7.4/./pcap-dbus.c:191: undefined reference to `dbus_bus_register'
/directory/libpcap-1.7.4/./pcap-dbus.c:230: undefined reference to `dbus_bus_add_match'
/directory/libpcap-1.7.4/./pcap-dbus.c:231: undefined reference to `dbus_error_is_set'
/directory/libpcap-1.7.4/./pcap-dbus.c:232: undefined reference to `dbus_error_free'
/directory/libpcap-1.7.4/./pcap-dbus.c:235: undefined reference to `dbus_bus_add_match'
/directory/libpcap-1.7.4/./pcap-dbus.c:236: undefined reference to `dbus_error_is_set'
/directory/libpcap-1.7.4/./pcap-dbus.c:238: undefined reference to `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 to `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 to `dbus_bus_get'
/directory/libpcap-1.7.4/./pcap-dbus.c:178: undefined reference to `dbus_error_free'
/directory/libpcap-1.7.4/./pcap-dbus.c:227: undefined reference to `dbus_connection_set_max_received_size'
/directory/libpcap-1.7.4/./pcap-dbus.c:176: undefined reference to `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 to `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 to `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 to `dbus_message_demarshal'
/directory/libpcap-1.7.4/./pcap-dbus.c:120: undefined reference to `dbus_connection_send'
/directory/libpcap-1.7.4/./pcap-dbus.c:121: undefined reference to `dbus_connection_flush'
/directory/libpcap-1.7.4/./pcap-dbus.c:123: undefined reference to `dbus_message_unref'
/directory/libpcap-1.7.4/./pcap-dbus.c:116: undefined reference to `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 to `dbus_connection_read_write'
/directory/libpcap-1.7.4/./pcap-dbus.c:66: undefined reference to `dbus_connection_pop_message'
/directory/libpcap-1.7.4/./pcap-dbus.c:83: undefined reference to `dbus_message_is_signal'
/directory/libpcap-1.7.4/./pcap-dbus.c:88: undefined reference to `dbus_message_marshal'
/directory/libpcap-1.7.4/./pcap-dbus.c:100: undefined reference to `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

您是否有任何想法/解决方案来安装tcpreplay

由于

1 个答案:

答案 0 :(得分:-1)

sudo apt-get install tcpreplay