Linux 在 -lpcap 中找不到 pcap_open_live

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10852092/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 06:37:15  来源:igfitidea点击:

pcap_open_live not found in -lpcap

linuxubuntulibpcap

提问by shobhit

I am trying to build reaveron Ubuntu 12.04 32bit. I have already built and installed libpcap.

我正在尝试在 Ubuntu 12.04 32 位上构建reaver。我已经构建并安装了libpcap

Running ./configure, I get following error:

运行./configure,我收到以下错误:

checking for pcap_open_live in -lpcap... no

error: pcap library not found!

在 -lpcap 中检查 pcap_open_live ... 否

错误:未找到 pcap 库!

Any help in fixing this is highly appreciated.

任何解决此问题的帮助都受到高度赞赏。

EDIT:This is the check in configure script:

编辑:这是检查配置脚本:

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5

$as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }

if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then :

  $as_echo_n "(cached) " >&6

else

  ac_check_lib_save_LIBS=$LIBS

采纳答案by Paul Rubel

You need more libraries, take a look at this bug report:

您需要更多库,请查看此错误报告

Looks like you need (as odd as it sounds):

看起来你需要(听起来很奇怪):

sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev