Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pcap.h header file problem

Tags:

ubuntu-10.10

anyone know how to fix the problem regarding header file in ubuntu 10.10. I am executing a sniffing program which makes use of this header file. My system shows libcap package is installed. Still, on compiling the code, an error is coming which reads:

fatal error: pcap.h: No such file or directory compilation terminated.

Please help me out.

Thanks all:)

like image 743
nwprogrammer Avatar asked Apr 25 '11 15:04

nwprogrammer


1 Answers

The system won't let me correct Eric Fossum's comment, because I lack reputation. There is a typo ("libcap" vs. "libpcap") and his suggested command should read the following:

sudo apt-get install libpcap-dev 
like image 115
famzah Avatar answered Sep 22 '22 14:09

famzah