Configure Error Cannot Find Pcap.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Problems finding pcap.h and linking up vote 5 down vote favorite 1 I'm working on Fedora 17 and I want to program with libpcap. The problem is that my computer isn't finding pcap.h, which is really wierd since I've installed libpcap and libpcap-devel. Also wireshark and snort works on my station which I believe uses that library. So when I compile my code with ... #include
Forums Dedicated Server iftop installation error. need help If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 4 of 4 Thread: iftop installation error. need help Tweet Thread Tools Show Printable Version http://stackoverflow.com/questions/13337349/problems-finding-pcap-h-and-linking Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 07-02-2009,03:27 AM #1 seachen View Profile View Forum Posts View Forum Threads Web Hosting Guru Join Date Aug 2007 Posts 263 iftop installation error. need help i have run the below cmd at my server, # cd http://www.webhostingtalk.com/showthread.php?t=872933 /usr/src # wget http://www.ex-parrot.com/~pdw/iftop/...op-0.17.tar.gz # cd /usr/src # gzip -d iftop-0.17.tar.gz # tar xvf iftop-0.17.tar # cd iftop-0.17 # ./configure # make # make install but i got the below error. [[emailprotected] iftop-0.17]# ./configure checking gethostbyaddr_r usability... yes checking where to find pcap.h... no idea configure: error: can't find pcap.h You're not going to get very far without libpcap. How to settle this problem? thanks. Reply With Quote 0 07-02-2009,03:43 AM #2 zwtint View Profile View Forum Posts View Forum Threads WHT Addict Join Date Feb 2007 Posts 147 Hello, It seems that libpcap module is missing from your server. Which OS do you use? Run the followings (depends on your system): apt-get install libpcap (Debian,Ubuntu etc..) or yum install libpcap (CentOS...) Regards, Andrew Neill Steady Communications LLC. Reply With Quote 0 07-02-2009,04:39 AM #3 seachen View Profile View Forum Posts View Forum Threads Web Hosting Guru Join Date Aug 2007 Posts 263 [[emailprotected] iftop-0.17]# yum install libpcap Excluding Packages in global exclude list Finis
even though libpcap-devel is installed Issues related to http://www.centos.org/forums/viewtopic.php?t=53993 applications and software problems Post Reply Print view Search Advanced search 1 post • Page 1 of 1 hein_r Posts: 1 Joined: 2015/08/31 10:35:22 pcap.h not found even though libpcap-devel is installed Quote Postby hein_r » 2015/08/31 11:02:47 Hello all,I have a problem configure error regarding to compile a program by using cmake-gui. After running the make command, the output is:Code: Select all[ESD14LX@esd14lx linux]$ make
[ 1%] Building C object proj/linux/liboplkmn/CMakeFiles/oplkmn.dir/__/__/__/src/kernel/edrv/edrv-pcap_linux.c.o
/home/ESD14LX/openPOWERLINK_V2.2.1/stack/src/kernel/edrv/edrv-pcap_linux.c:48:18: fatal error: pcap.h: No such file or directory
#include
configure error cannot ^
compilation terminated.
make[2]: *** [proj/linux/liboplkmn/CMakeFiles/oplkmn.dir/__/__/__/src/kernel/edrv/edrv-pcap_linux.c.o] Error 1
make[1]: *** [proj/linux/liboplkmn/CMakeFiles/oplkmn.dir/all] Error 2
make: *** [all] Error 2
to face the problem I've installed the packages libpcap(which was already there) and libpcap-devel(which wasn't there). This solved my problem for this session.After turning off and back on the computer the next week the error after running make shows up again. So i checked if the package is still there:Code: Select all[ESD14LX@esd14lx linux]$ sudo yum install libpcap libpcap-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* extras: centos.mirrors.as250.net
* updates: ftp.rrzn.uni-hannover.de
Package 14:libpcap-1.5.3-4.el7_1.2.x86_64 already installed and latest version
Package 14:libpcap-devel-1.5.3-4.el7_1.2.x86_64 already installed and latest version
Nothing to do
so, that seems to be correct. Moreover:Code: Select allESD14LX@esd14lx linux]$ whereis pcap
pcap: /usr/include/pcap.h /usr/include/pcap /usr/share/ma