configure: error: Unable to link libpcap in /usr/local
又找了一下资料,试着安装了一下这个 yum install libnl-devel,之后再./configure
##########################################################################
TCPREPLAY Suite Configuration Results (3.4.3)
##########################################################################
libpcap: /usr/local (>= 0.9.6)
libdnet: no ()
autogen: (unknown)
Use libopts tearoff: yes
64bit counter support: yes
tcpdump binary path: /usr/sbin/tcpdump
tcpreplay edit support:
fragroute support: no
tcpbridge support: yes
Supported Packet Injection Methods (*):
Linux PF_PACKET: yes
BSD BPF: no
libdnet: no
pcap_inject: yes
pcap_sendpacket: yes **
* In order of preference; see configure --help to override
** Required for tcpbridge
再分别执行make make install就可以安装
3、Hping
wget
tar -zxvf hping3-20051105.tar.gz
cd hping3-20051105
./configure
make
make出现问题:libpcap_stuff.c:20:21: 错误:net/bpf.h:没有那个文件或目录
解决办法:
查看一下是否安装了libpcap及libpcap-devel
rpm -qa| grep libpcap
libpcap-1.0.0-6.20091201git117cb5.el6.x86_64
libpcap-devel-1.0.0-6.20091201git117cb5.el6.x86_64
/usr/bin/ld: cannot find -ltcl
collect2: ld 返回 1
make: *** [hping3] 错误 1
make
出现问题:/usr/bin/ld: cannot find -ltcl
解决方法:yum -y install tcl yum -y install tcl-devel
再次make出现问题:这个在hping官网上有记录此bug,需要make uninstall删除,然后重新 ./configure、make、make install。
Hping3s compile error: ../hping3s/main.c:186: undefined reference to 'hping_script'
然后继续,又出现 下面 的问题,这个应该是之前 按照其他人的方法做了一个ln的链接导致的,
chmod 755 /usr/sbin/hping3
ln -s /usr/sbin/hping3 /usr/sbin/hping
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-35103-3.html
虽远必诛
感谢
是封建社会独有的东西