hping安裝還是報錯!軟連接做了,pcap安裝了。
[root@centos hping-master]# make
gcc -c -O2 -Wall ? ?-g ?main.c
gcc -c -O2 -Wall ? ?-g ?getifname.c
getifname.c: \u5728\u51fd\u6570\u2018get_if_name\u2019\u4e2d:
getifname.c:61: \u8b66\u544a\uff1a\u6b64\u51fd\u6570\u4e2d\u7684\u2018sa.sin_addr.s_addr\u2019\u5728\u4f7f\u7528\u524d\u53ef\u80fd\u672a\u521d\u59cb\u5316
gcc -c -O2 -Wall ? ?-g ?getlhs.c
gcc -c -O2 -Wall ? ?-g ?parseoptions.c
gcc -c -O2 -Wall ? ?-g ?datafiller.c
gcc -c -O2 -Wall ? ?-g ?datahandler.c
gcc -c -O2 -Wall ? ?-g ?binding.c
gcc -c -O2 -Wall ? ?-g ?logicmp.c
gcc -c -O2 -Wall ? ?-g ?waitpacket.c
gcc -c -O2 -Wall ? ?-g ?sendip.c
gcc -c -O2 -Wall ? ?-g ?sendicmp.c
gcc -c -O2 -Wall ? ?-g ?sendudp.c
gcc -c -O2 -Wall ? ?-g ?sendtcp.c
gcc -c -O2 -Wall ? ?-g ?cksum.c
gcc -c -O2 -Wall ? ?-g ?statistics.c
gcc -c -O2 -Wall ? ?-g ?version.c
gcc -c -O2 -Wall ? ?-g ?listen.c
gcc -c -O2 -Wall ? ?-g ?sendhcmp.c
gcc -c -O2 -Wall ? ?-g ?rtt.c
gcc -c -O2 -Wall ? ?-g ?relid.c
gcc -c -O2 -Wall ? ?-g ?sendip_handler.c
gcc -c -O2 -Wall ? ?-g ?libpcap_stuff.c
gcc -c -O2 -Wall ? ?-g ?ip_opt_build.c
gcc -c -O2 -Wall ? ?-g ?display_ipopt.c
gcc -c -O2 -Wall ? ?-g ?sendrawip.c
gcc -c -O2 -Wall ? ?-g ?send.c
gcc -c -O2 -Wall ? ?-g ?arsglue.c
gcc -c -O2 -Wall ? ?-g ?scan.c
gcc -c -O2 -Wall ? ?-g ?ars.c
ars.c: \u5728\u51fd\u6570\u2018ars_multi_cksum\u2019\u4e2d:
ars.c:485: \u8b66\u544a\uff1a\u4e0e\u5b57\u9762\u5b57\u7b26\u4e32\u6bd4\u8f83\u7684\u7ed3\u6784\u662f\u4e0d\u53ef\u9884\u6d4b\u7684
gcc -c -O2 -Wall ? ?-g ?apd.c
gcc -c -O2 -Wall ? ?-g ?split.c
gcc -c -O2 -Wall ? ?-g ?rapd.c
gcc -o hping3 -O2 -Wall ? ?-g main.o getifname.o getlhs.o parseoptions.o datafiller.o datahandler.o gethostname.o binding.o getusec.o opensockraw.o logicmp.o waitpacket.o resolve.o sendip.o sendicmp.o sendudp.o sendtcp.o cksum.o statistics.o usage.o version.o antigetopt.o sockopt.o listen.o sendhcmp.o memstr.o rtt.o relid.o sendip_handler.o libpcap_stuff.o memlockall.o memunlockall.o memlock.o memunlock.o ip_opt_build.o display_ipopt.o sendrawip.o signal.o send.o strlcpy.o arsglue.o random.o scan.o hstring.o script.o interface.o adbuf.o hex.o apdutils.o sbignum.o sbignum-tables.o ars.o apd.o split.o rapd.o -L/usr/local/lib -lpcap ?-ltcl -lm -lpthread
/usr/bin/ld: cannot find -ltcl
collect2: ld \u8fd4\u56de 1
make: *** [hping3] \u9519\u8bef 1
[root@centos hping-master]#?
2022-08-18
缺少一個tcl的包?
2016-07-23
安裝:
需要依賴安裝
yum -y install gcc libpcap-devel ??tcl-devel
libpcap-devel安裝不上的話去官網(wǎng)下載安裝包手動安裝
建立軟鏈接:ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
./configure ? ? ?make ? ? ?make install
2015-08-21
你可以到這里查查,我和你一樣安裝的時候遇到了好多問題,都是看這個解決的
http://wiki.hping.org/20
2015-03-26
你要裝個tcl和tcl-devel ? ? ?yum -y install tcl?????????? yum -y install tcl-devel
2015-03-26
步驟一樣,版本不知道啊 ?也是在那個網(wǎng)站上下載的。
2015-03-25
有可能是版本不對,也可以再看看視頻中老師的步驟和你的步驟一樣嗎