hping 安装问题

来源:互联网 发布:数据库阻塞和死锁区别 编辑:程序博客网 时间:2024/05/22 03:44
hping3 在linux上的安装问题:
libpcap_stuff.c:20:21: error: net/bpf.h: No such file or directory
   解决办法:
       检查:libpcap及libpcap-devel是否存在,不存在就安装,安装后就做个连接: ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h 重新编译问题解决
 
ars.h:190:2: error: #error "Please, edit Makefile and add -DBYTE_ORDER_(BIG|LITTLE)_ENDIAN"
  解决办法:
      添加#define BYTE_ORDER_LITTLE_ENDIAN到byte***.h文件
byte***.h:22:3: error: #error can not find the byte order for this architecture, fix byte***.h
  解决办法:
      因为是64位系统所以:
添加defined(__x86_64__) \ 到byte***.h文件
 
/usr/bin/ld: cannot find -ltcl
   这个问题相当普遍解决办法也很有规律性:
/usr/bin/ld:can't find -lxxxx
解决办法:
yum -y install xxxx-devel
1 0