Compiling reaver-wps: error: pcap library not found!

reaver-wps is the program that cracks wps. I encountered problem while running the configure script for the source code on KDE Linux Mint 12:

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 and libpcap0.8-dev were installed because I installed wireshark, however the problem was not due to absence of libpcap. It lacked sqlite3 development files, for ubuntu based Linux use apt-get to install libsqlite3-dev and install sqlite3. Installing sqlite3 alone does not install libsqlite3-dev.

sudo apt-get install libsqlite3-dev

After installing libsqlite3-dev configure script configured the source code successfully.

Note: Reaver has sqlite3 and libpcap as dependencies.


18 thoughts on “Compiling reaver-wps: error: pcap library not found!

  1. I ran into the same problem on CentOS 6:

    uname -a –> Linux 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux

    Download the latest version from
    $ gunzip reaver-1.4.tar.gz
    $ tar -xvf reaver-1.4.tar
    $ cd reaver-1.4/src
    $ ./configure ==> error pcap not found (found in libpcap)
    $ su root
    # yum install libpcap-devel ==> OK base
    # yum install sqlite-devel ==> OK base
    # cd reaver-1.4/src
    # ./configure
    # make
    # make install
    # exit
    $ which reaver –> /usr/local/bin/reaver

  2. In Ubuntu 12.10
    Install This
    sudo apt-get install libpcap-devsudo
    apt-get install libpcap0.8-dev

    Install Reaver
    sudo -i
    Add You Pass : ××××
    tar -xzvf reaver-1.4.tar.gz
    cd reaver-1.4
    cd src
    make install
    Then Run : sudo reaver

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s