Could NOT find PCAP (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)

下载pcap包
http://www.tcpdump.org/#latest-release

tar -zxvf libpcap-1.9.0.tar.gz
cd libpcap-1.9.0
sudo ./configure
sudo make
sudo make install

在configure后可能会出现如下错误

configure: error: Neither flex nor lex was found.

解决方法

sudo apt-get install flex bison

然后重新执行configure,make ,make install .安装完成

只有先安装好libpcap后,TCPdump安装才没有问题

你可能感兴趣的:(安装软件)