Libpcap的下载地址:http://www.tcpdump.org/release/
sudo su -
tar zxvf libpcap-1.9.1.tar.gz
chmod +x -R libpcap-1.9.1
PS:未赋可执行权限会报“make: *** No targets specified and no makefile found. Stop.”错误信息
cd libpcap-1.9.1/
./configure
PS:
错误信息:“configure: error: Neither flex nor lex was found.”
解决方法:yum install flex bison
make
make install