ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) not found
I am running Ubuntu 11.10. I downloaded libpcap-1.3.0.tar.gz to /temp, unzipped and untarred it, went into /tmp/libpcap-1.3.0 and did the following
Code:
./configure Code:
./configure Code:
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) Code:
/tmp/libpcap-1.3.0/libpcap.a Any assistance with fixing this problem would be greatly appreciated. Peter. |
Quote:
With regard to the failure of barnyard to ./configure, it may be that it is looking for a higher version of libpcap that the one you have installed, or it may be looking for libpcap in another location. Things to try: 1) inspect the source code to see the location it expects to find libpcap, the either symlink or hard link your libpcap to that location. 2) rerun ./configure with the appropriate option to search for libpcap in it present location to see if that works. |
make sure that headers can be found:
Code:
`gcc -print-prog-name=cc1` -v -o /dev/null </dev/null Code:
$ /sbin/ldconfig -p | grep libpcap |
Quote:
All of the missing files it mentions are in /tmp/libpcap-1.3.0. I ran the following Code:
./configure --with-libpcap-libraries=/tmp/libpcap-1.3.0 --with-libpcap-includes=/tmp/libpcap-1.3.0 Code:
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) Peter. |
Quote:
Code:
ignoring nonexistent directory "/usr/lib/gcc/i686-linux-gnu/4.6.1/../../../../i686-linux-gnu/include" Quote:
Returned Code:
libpcap.so.0.8 (libc6) => /usr/lib/i386-linux-gnu/libpcap.so.0.8 Peter. |
well, did you check if pcap.h can be found in one of the listed directories for includes?
|
Quote:
Code:
peter@peter-Inspiron-620:~$ sudo find / -name pcap.h -print Peter. |
Surely libpcap is in the repos?
|
there's should be config.log file with exact test code that failed
|
The development files for libpcap, Ubuntu 11.10 :
sudo apt-get install libpcap-dev http://packages.ubuntu.com/oneiric/libpcap-dev http://packages.ubuntu.com/oneiric/libpcap0.8-dev . |
Quote:
|
Quote:
Thanks, Peter. |
Quote:
Thanks, Peter. |
All times are GMT -5. The time now is 07:23 AM. |