No such file or directory net/bpf.h
By Sarah Scott •
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 :
tried executing
ln -s /usr/include/pcap-bpf.h /usr/include/net/bpf.hPlease help me on how to resolve this error.
1 Answer
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-devand then do:
ln -s /usr/include/pcap/bpf.h /usr/include/net/bpf.h 1