M HYPE SPLASH
// updates

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.h

Please help me on how to resolve this error.

enter image description here

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-dev

and then do:

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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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