eedabd / reaver-wps

Automatically exported from code.google.com/p/reaver-wps
0 stars 0 forks source link

./configure fails as pcap is not found #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
0. What version of Reaver are you using?  (Only defects against the latest
version will be considered.)
r69
1. What operating system are you using (Linux is the only supported OS)?
ubuntu 11.10

According libpcap is installed

sudo apt-get install libpcap-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpcap-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

According to this it isn't?

./configure
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!

Tried multiple removes, libpcap compiles from source - which did not work.
Ran from backtrack without problems, though. (running from backtrack is not an 
option)

Original issue reported on code.google.com by mojavo...@gmail.com on 6 Jan 2012 at 8:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
sudo apt-get install libpcap0.8-dev

Original comment by der...@libero.it on 6 Jan 2012 at 10:49

GoogleCodeExporter commented 8 years ago
Only if it was that simple...

sudo apt-get install libpcap0.8-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libpcap0.8-dev is already the newest version.
libpcap0.8-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

~/reaver-wps-read-only$ ./configure
[...]
checking for pcap_open_live in -lpcap... no
error: pcap library not found!

Original comment by mojavo...@gmail.com on 6 Jan 2012 at 12:48

GoogleCodeExporter commented 8 years ago
I can confirm this behavior, though I don't know why the configure script can't 
find pcap_open_live in libpcap.so. It uses the standard AC_CHECK_LIB macro, and 
pcap_open_live is clearly in the library (confirmed by readelf). Will need to 
look in to this more; for now, use something other than Ubuntu 11.10 (this 
doesn't happen in Ubuntu 10.04 or BT5). 

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 1:56

GoogleCodeExporter commented 8 years ago
Fedora 16..pcap and pcap-devel installed..
i get same results from ./configure

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:49

GoogleCodeExporter commented 8 years ago
Forgot to add: x64 system

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:50

GoogleCodeExporter commented 8 years ago
I have found the solutions.

The configure script exits on SQLite3..so just install sqlite3-devel and 
everything is ok

Original comment by ianc...@gmail.com on 6 Jan 2012 at 6:57

GoogleCodeExporter commented 8 years ago
Installing "libsqlite3-dev" in Ubuntu 12.04 works. Thanks for the solution :)

Original comment by rob...@keizer.ca on 6 Jan 2012 at 7:27

GoogleCodeExporter commented 8 years ago
@mojavosas, I don't have this problem anymore with the latest SVN.

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 7:41

GoogleCodeExporter commented 8 years ago
Correct - r73 fix'ed the issue.
Installing "libsqlite3-dev" is also a good idea.

Original comment by mojavo...@gmail.com on 6 Jan 2012 at 8:13

GoogleCodeExporter commented 8 years ago

Original comment by cheff...@tacnetsol.com on 6 Jan 2012 at 8:18

GoogleCodeExporter commented 8 years ago
in fedora 16 
yum install libpcap-devel
yum install sqlite-devel

all works! 

Original comment by noisey...@gmail.com on 9 Jan 2012 at 8:50

GoogleCodeExporter commented 8 years ago
got the fix for Ubuntu 10.04

apt-get install libpcap3-dev
apt-get install libsqlite3-dev
apt-get install libnl2-dev

now the important:
!!! libnl2 needs libdect !!!

so you have to edit the configure script with your editor - I take vi :)

vi configure
on line 2784 add -lnl and -ldect => LDFLAGS="-ldl -lm -lpcap -lsqlite3 -lnl 
-ldect $LDFLAGS"
on line 2793 add -lnl and -ldect => LIBS="-lpcap -lnl -ldect  $LIBS"

save all with your editor and exit (in vi with ":x")

do the same with file configure.ac
on line 7 add -lnl and -ldect => LDFLAGS="-ldl -lm -lpcap -lnl -ldect -lsqlite3 
$LDFLAGS"

then the old proceedure: 
make distclean
./configure
make
...

hope it helps

Original comment by schroedl...@googlemail.com on 18 Jan 2012 at 8:24

GoogleCodeExporter commented 8 years ago
"so just install sqlite3-devel and everything is ok"

This worked for me on Ubuntu 11.10 x64

Original comment by dfarrel...@gmail.com on 7 Feb 2012 at 7:08

GoogleCodeExporter commented 8 years ago
"apt-get install libsqlite3-dev"
works for me on Ubuntu 11.10 x64 also.

Original comment by howerkr...@gmail.com on 17 Feb 2012 at 3:00

GoogleCodeExporter commented 8 years ago
"apt-get install libsqlite3-dev" works for me too on Mint 12 ! Thanks for the 
solution !

Original comment by pierrebrunel84@gmail.com on 17 Feb 2012 at 4:20

GoogleCodeExporter commented 8 years ago
Works for me too.... Thanks

Original comment by phil.j.p...@gmail.com on 13 Mar 2012 at 10:19

GoogleCodeExporter commented 8 years ago
"apt-get install libsqlite3-dev"
works for me on Ubuntu 11.10 x64

Original comment by yari...@gmail.com on 3 Apr 2012 at 8:31

GoogleCodeExporter commented 8 years ago
FC16-x86_64
http://cyruslab.wordpress.com/2012/02/19/compiling-reaver-wps-error-pcap-library
-not-found/

Original comment by r.schuur...@gmail.com on 5 Apr 2012 at 7:16

GoogleCodeExporter commented 8 years ago
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

Original comment by Rocksock...@gmail.com on 16 May 2012 at 9:13

GoogleCodeExporter commented 8 years ago
works for me on Debian Squeeze 2.6.32-5-686
//syberia55

Original comment by 624...@gmail.com on 26 May 2012 at 5:45

GoogleCodeExporter commented 8 years ago
Thanks, the install sqlite3-dev works for me on Debian Squeeze.

Original comment by rodneyha...@gmail.com on 29 May 2012 at 6:48

GoogleCodeExporter commented 8 years ago
It's doesn' work for me. I have ubuntu 10.04 lts and It doesn't install 
libpcap0.8-dev, libnl2-dev. I can't find libpcap3-dev! Where I find it?
Thanks. 

Original comment by bellaaus...@gmail.com on 3 Jun 2012 at 1:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hi, i use ubuntu 11.10 but when i tried to install 1.4 and 1.3 it does not work 
but the version 1.2 it work

Original comment by saadyyou...@gmail.com on 30 Jul 2012 at 5:10

GoogleCodeExporter commented 8 years ago
also you can try this before installing 
sudo apt-get install libsqlite3-dev libpcap0.8-dev build-essential

its works for all

Original comment by saadyyou...@gmail.com on 30 Jul 2012 at 5:19

GoogleCodeExporter commented 8 years ago
Comment #26 by saadyyou...@gmail.com worked finally.  Thank you!

Original comment by peeon...@gmail.com on 29 Aug 2012 at 11:56

GoogleCodeExporter commented 8 years ago
@schroedl... I did what you said but the problem remains.:( also i can't find 
libcap3-dev or libnl2-dev as you mention, but previous releases from theese two 
dev-s i mentioned.... Any Ideas? 
libsqlite3-dev... i found only that! And i downloaded previous releases from 
the other 2 , but the problem still remains: 
error: pcap library not found!
please Help!!!

Original comment by panaka...@gmail.com on 27 Oct 2012 at 3:12

GoogleCodeExporter commented 8 years ago
Hi guys,
I have the same problem as bellaaus and panaka, Can't install libpcap3-dev.

---
sudo apt-get install libpcap3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpcap3-dev
---

Original comment by ponytheo...@gmail.com on 3 Nov 2012 at 9:22

GoogleCodeExporter commented 8 years ago
Ok, installed BT5r3 in a USB with Unetbootin!! Now it 's all ok,...
I have another problem in reaver: 
SENDING EAPOL START REQUEST
WARNING RECEIVED TIMEOUT..
SENDING EAPOL START REQUEST
WARNING RECEIVED TIMEOUT..
SENDING EAPOL START REQUEST
WARNING RECEIVED TIMEOUT..
.............
and goes on....

The Ap i am trying to reach has WPS Unlocked...
I appreciate whoever helps me in this, But I also know that i might have ritten 
this post at another Issue # page.... :) 

Original comment by panaka...@gmail.com on 10 Nov 2012 at 8:20

GoogleCodeExporter commented 8 years ago
working after installing sqlite3-devel package on OpenSuse 12.2

Original comment by aleks.ch...@gmail.com on 6 Jan 2013 at 10:19

GoogleCodeExporter commented 8 years ago
And you wonder why people prefer Windows!

Original comment by touchdow...@gmail.com on 10 Jan 2013 at 5:59

GoogleCodeExporter commented 8 years ago
# apt-get install build-essential libpcap0.8 libpcap-dev libsqlite3-0 
libsqlite3-devinstall build-essential libpcap0.8 libpcap-dev libsqlite3-0 
libsqlite3-dev

enjoy! :)

Original comment by cove...@gmail.com on 6 Feb 2013 at 9:01

GoogleCodeExporter commented 8 years ago
"sudo apt-get install libsqlite3-dev libpcap0.8-dev build-essential" only 
worked for me. Thank you.
Ubuntu 12.04.1 LTS

Original comment by atohodgu...@gmail.com on 19 Feb 2013 at 12:38

GoogleCodeExporter commented 8 years ago
libpcap0.8-dev work for ubuntu 12.10

Original comment by hishamze...@gmail.com on 1 Mar 2013 at 5:57

GoogleCodeExporter commented 8 years ago
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

Original comment by alm6iri2...@gmail.com on 6 Mar 2013 at 1:56

GoogleCodeExporter commented 8 years ago
install "libsqlite3-dev" work for me in ubuntu 12.10

Original comment by bubini.m...@gmail.com on 20 Mar 2013 at 11:48

GoogleCodeExporter commented 8 years ago
Installing sqlite-devel on Fedora 18 x86_64 fixed the issue for me as well.

Original comment by strash...@gmail.com on 6 Apr 2013 at 10:47

GoogleCodeExporter commented 8 years ago
the same isue on debian 7.1 amd64
installing libqlite3-dev sovled the issue.
what a weird misleading error message!!

Original comment by alejandr...@gmail.com on 15 Aug 2013 at 10:30

GoogleCodeExporter commented 8 years ago
thx.it works for me too

Original comment by moustaco...@gmail.com on 6 Nov 2013 at 6:10

GoogleCodeExporter commented 8 years ago
Thanks, it works in ubuntu12.04 just like what #2 said

Original comment by jfgon...@gmail.com on 30 Nov 2013 at 10:23

GoogleCodeExporter commented 8 years ago
OpenSuse 13.1 

sudo zypper install sqlite3-
sudo zypper install sqlite3-devel
sudo zypper install libpcap-devel

Works

Original comment by d...@t-tine.com on 10 Apr 2014 at 10:02

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
You can Download the libpcap from  
http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libpcap.html after that 
you download it mount the zipfile using winrar or poweriso and then copy the 
folder and paste it in "/usr/include/".
Good Luck!

Original comment by wajid.na...@gmail.com on 14 Apr 2014 at 5:42

GoogleCodeExporter commented 8 years ago
Installed libpcap-dev, libsqlite3-dev, libpcap-dev.
libpcap0.8 is already latest version. Also tried adding libpcap directly to 
/usr/include/
Still getting pcap library not found.
Ubuntu 12.04 32-bit.

Original comment by lord.aar...@gmail.com on 17 Apr 2014 at 4:23

GoogleCodeExporter commented 8 years ago
Got the issue with reaver 1.4 on Kali, install libsqlite3-dev and know it's 
working
Thx guys ;)

Original comment by Mac7...@gmail.com on 30 Jun 2014 at 9:02

GoogleCodeExporter commented 8 years ago
So I'm trying to install reaver-1.4 on Fedora 19 and getting the above "pcap 
library not found!" message.  So I installed subversion and rpmfinder and 
airmon-ng and libcap-1.6.1 and libpcap-devel and ipstat and sqlite and sqlite3 
and ruby and GCC.  I can't even find poweriso for F19 So I can't move the pcap 
folder from the libpcap folder into /usr/include/.  I tried screaming at my 
computer for two days, I had started with fedora 18 so I upgraded to this, I 
downloaded ubuntu but haven't upgraded to that yet (if I do will I have to 
install all this stuff again?)  I'm also downloading Kali, all so I can use the 
internet when the linksys Ap craps out on me every few days.  I've done 
everything short of human sacrifice, but my roommate looks like he might sate 
the gods and I don't want to pay full rent.

[root@localhost src]# ./configure
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!

^This is what I dream of when I go to sleep.  My box must be starving because I 
feed it all kinds of programs with yum.

Original comment by JosephaM...@gmail.com on 4 Aug 2014 at 4:38

GoogleCodeExporter commented 8 years ago
apt-get install libcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev
it's solved 

Original comment by beokhoeb...@gmail.com on 4 Oct 2014 at 4:59

GoogleCodeExporter commented 8 years ago
hiii...i am using kali linux

i cannot install the package [ liqsqlite3-dev ]

error :

apt-get install libsqlite3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsqlite3-dev

please help

Original comment by feen...@gmail.com on 30 Jan 2015 at 6:57

GoogleCodeExporter commented 8 years ago
sudo apt-get install libpcap-dev works for pcap library in ubuntu 14.10 64 bit

Original comment by GauravSi...@gmail.com on 29 Apr 2015 at 7:14