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!
