网上有好多的是安装
libpcap0.8
libpcap0.8-dev
libpcap-dev
等等
但是我用centos试了试都是不好使
后来试了一个好使了。所以我们应该找对方法
yum install -y libpcap-devel
希望对你有用!!!