5

I am trying to run the make command and I got the error

fatalerror: net/bpf.h: No such file or directory.

I looked up online and found this link : http://www.joewein.net/info/sw-net-bfh-error.htm

tried executing

ln -s /usr/include/pcap-bpf.h /usr/include/net/bpf.h

Please help me on how to resolve this error.

enter image description here

10

I think there's a typo in that instruction. It should be: /usr/include/pcap/bpf.h and not /usr/include/pcap-bpf.h since there's bpf.h file provided by the pcap library. So you need to install the library first:

sudo apt-get install libpcap0.8-dev

and then do:

ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h
  • You sir are a pure genius :) – Megha M Oct 14 '14 at 22:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.