ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) not found
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
make
make install
Everything went w/o errors but when I subseqnetly download barnyard2-1.9.tar.gz to /tmp, unzip and untar it, go into /tmp/barnyard2-1.9 and run
Code:
./configure
I get
Code:
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
not found, go get it from http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place. Also check if your libpcap depends on another
shared library that may be installed in an unusual place
It would appear that I have not installed it in a way that it can be found by the system. It could be that I installed it as myself and not as root.
You could not have written anything outside of your /home directory as user; only as root.
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.
You could not have written anything outside of your /home directory as user; only as root.
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.
Thank you for your reply
All of the missing files it mentions are in /tmp/libpcap-1.3.0. I ran the following
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
not found, go get it from http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place. Also check if your libpcap depends on another
shared library that may be installed in an unusual place
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.