我无法在 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,我用 yum 卸载了 tcpdump、libpcap。从 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
谢谢