为了账号安全,请及时绑定邮箱和手机立即绑定

安装hping时出错

[root@Jalon hping-master]# make gcc -c -O2 -Wall    -g  main.c gcc -c -O2 -Wall    -g  getifname.c gc gcc -c -O2 -Wall    -g  parseoptions.c gcc -c -O2 -Wall    -g  datafiller.c libpcap_stuff.c:19:21: error: net/bpf.h: No such file or directory make: *** [libpcap_stuff.o] Error 1 make 的时候出错,求解答

正在回答

6 回答

libpcap_stuff.c:19:21: 致命错误:net/bpf.h:没有那个文件或目录


0 回复 有任何疑惑可以回复我~

Makefile:66: recipe for target 'libpcap_stuff.o' failed

0 回复 有任何疑惑可以回复我~

ltcl -lm -lpthread

/usr/bin/ld: cannot find -ltcl

collect2: ld returned 1 exit status

make: *** [hping3] Error 1


0 回复 有任何疑惑可以回复我~

$ ln -snf /usr/include/pcap-bpf.h /usr/include/net/bpf.h

1 回复 有任何疑惑可以回复我~
#1

努力的小蜗牛

thx
2016-01-26 回复 有任何疑惑可以回复我~

 查看一下是否安装了libpcap及libpcap-devel 


0 回复 有任何疑惑可以回复我~

libpcap_stuff.c:19:21: error: net/bpf.h: No such file or directory

make: *** [libpcap_stuff.o] Error 1


0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

安装hping时出错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信