前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos5.3下安装hping3的方

centos5.3下安装hping3的方

作者头像
py3study
发布2020-01-08 11:23:25
5600
发布2020-01-08 11:23:25
举报
文章被收录于专栏:python3python3

安装环境准备: gcc libpcap-dev tcl-dev 安装步骤: #tar -zxvf hping3-200541105.tar.gz -C /usr/local/src #cd /usr/include/net #ln -s ../pcap-bpf.h bpf.h #cd /usr/local/src/hping3-20051105 #./configure #make #make install

问题容易出在红色代码那部分,如果不执行那句代码,就会出现如下错误:

[root@centos5 hping3-20051105]# ./configure build byteorder.c... create byteorder.h... ===> Found Tclsh in: /usr/bin/tclsh8.4 ==> WARNING: no Tcl header files found! -------------------------------------- system type: LINUX LIBPCAP      : PCAP=-lpcap PCAP_INCLUDE : MANPATH      : /usr/local/man USE_TCL      : TCL_VER      : 8.4 TCL_INC      : LIBTCL       : -ltcl8.4 -lm -lpthread TCLSH        : /usr/bin/tclsh8.4 (to modify try configure --help) -------------------------------------- creating Makefile... creating dependences... now you can try `make' [root@centos5 hping3-20051105]# make gcc -c -O2 -Wall    -g  main.c main.c:29:18: 错误:pcap.h:没有那个文件或目录 main.c:169: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token main.c:170: 错误:‘PCAP_ERRBUF_SIZE’ 未声明 (不在函数内) make: *** [main.o] 错误 1

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-09-13 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档