Could NOT find PCAP (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)

在安装PCL时会有这样的错误:

Could NOT find PCAP (missing: PCAP_LIBRARIES PCAP_INCLUDE_DIRS)

1.下载pcap包,地址:http://www.tcpdump.org/#latest-release

$ tar -zxvf libpcap-1.9.0.tar.gz

$ cd libpcap-1.9.0

$ ./configure

$ make -j8

$ sudo make install

2.如果在./configure时出现:

configure: error: Neither flex nor lex was found.

解决办法:

$ sudo apt-get install flex bison

Done!

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2022-01-21
  • 2021-11-05
  • 2021-12-22
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2021-11-08
  • 2022-03-04
  • 2021-08-26
  • 2022-12-23
  • 2021-08-11
  • 2021-08-15
  • 2021-07-30
相关资源
相似解决方案