Hping安装过程及其错误解决
从github下载压缩包并解压:
hping的github地址:https://github.com/antirez/hping
hping的安装方法:https://github.com/antirez/hping/blob/master/INSTALL
测试./configure:
运行./configure:
Try‘make’:
报错:main.c:29:10: fatal error: pcap.h: 没有那个文件或目录
编译终止.解决办法:
还要安装:apt-get install tcl-dev
再次try‘make’:
报错:libpcap_stuff.c:20:10: fatal error: net/bpf.h: 没有那个文件或目录
编译终止.解决办法:
ln -snf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
再次运行./configure && make install:
有个warning,但是已经安装成功了;