6

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

1 Answer 1

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
1
  • You sir are a pure genius :)
    – Megha M
    Commented Oct 14, 2014 at 22:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .