pcap_open_live not found in -lpcap

shobhit picture shobhit · Jun 1, 2012 · Viewed 12.4k times · Source

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

Running ./configure, I get following error:

checking for pcap_open_live in -lpcap... no

error: pcap library not found!

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

Answer

Paul Rubel picture Paul Rubel · Jun 1, 2012

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