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.

Advertisements
This entry was posted in Linux, Security, System OS, Vulnerability Assessment and Pentest and tagged , , , , , , , . Bookmark the permalink.

15 Responses to Compiling reaver-wps: error: pcap library not found!

  1. Jacob says:

    Thanks for this, it saved me some time. I appreciate it.

  2. mastodont says:

    Thaks a lot. I had same problem.

  3. Harold says:

    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 http://code.google.com/p/reaver-wps/downloads/list)
    $ 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

  4. chris says:

    thank you very much! that saved me some time debugging 😉

  5. ausplanner says:

    anyone tried reaver pro? I don’t get this issue anymore and you are not forced to use the kit http://goo.gl/Upwfo

  6. Matt says:

    You little ledge!!! worked as promised… cheers

  7. Thank you very much.

  8. 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
    ./configure
    make
    make install
    exit
    Then Run : sudo reaver

  9. awfwaff says:

    Thank you so much 🙂

  10. dawciobielel says:

    In Ubuntu 12.04 will work with:

    $ sudo apt-get install libsqlite3-dev

  11. steinit says:

    Thank you.
    apt-get install libpcap0.8-dev
    was also needed in my case

  12. zaebalo says:

    Thanks, Dude!

  13. Pankaj says:

    Thanks….

Leave a Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s