错误:未找到 pcap 库

错误:未找到 pcap 库

我尝试在 ubuntu 18.04 中安装 reaver,但是收到了这条消息

checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for pcap_open_live in -lpcap... no error: pcap library not found!

但是我已经安装了 libpcap0.8 和 libpcap0.8-dev

答案1

configure通常会创建一个日志文件,其中包含 抛出的确切错误gcc。您必须调查错误是什么。

您还可以打开configure脚本查看到底出了什么问题。脚本将包含一个测试程序,该程序使用pcap命令行来编译它。您可以从那里复制测试程序,然后尝试使用相同的命令行手动编译。

此类错误的可能原因是缺失或配置错误pkg-config

答案2

必须安装 libpcap-devel

相关内容