Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)

Posted 振华OPPO

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)相关的知识,希望对你有一定的参考价值。

问题描述

在安装pcl库时,对pcl源代码进行cmake分析,出现以下错误:

Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)
解决方案

1.官网下载pcap 1.9.0的压缩包


2.解压之后编译安装,命令如下:

$ tar -zxvf libpcap-1.9.0.tar.gz

$ cd libpcap-1.9.0

$ ./configure

$ make -j8

$ sudo make install

3.在./configure时如果出现如下错误:

configure: error: Neither flex nor lex was found.

直接输入下面命令安装缺少的依赖

$ sudo apt-get install flex bison

参考博客:https://www.cnblogs.com/nanmi/p/12840793.html

以上是关于Could NOT find Pcap (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)的主要内容,如果未能解决你的问题,请参考以下文章

Could not update the distribution database subscription table. The subscription status could not be

Could not execute menu item(internal error),[Exception] Could not perform service action:服务尚未启动。

Could not initialize English chunker/Could not load file from classpath: ‘/en-token.bin‘

使用 Parse.Could.AfterSave 将关系添加到 ParseObject

论文表达时can or could

Could not start AVD 解决办法