码迷,mamicode.com
首页 > 其他好文 > 详细

hping 安装问题

时间:2015-07-17 00:28:53      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:linux   hping   

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

hping 安装问题

标签:linux   hping   

原文地址:http://blog.csdn.net/qq_20480611/article/details/46919533

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!