1、安装libpcap-devel和tcl-devel
yum -y install libpcap-devel tcl-devel
2、从github上clone源代码
git clone https://github.com/antirez/hping.git
3、运行配置脚本
cd hping ./configure
4、创建软连接
ln -sf /usr/include/pcap-bpf.h /usr/include/net/bpf.h
5、编译
make
6、安装
make install