Just finished installing ubuntu 16.04.1 desktop version. Now I am trying to install libpcap. So far performed the following steps:

  1. Downloaded libpcap-1.8.1.tar.gz
  2. tar -zxvf libpcap-1.8.1.tar.gz
  3. cd libpcap-1.8.1
  4. ./configure && make && sudo make install

I am receiving the following error:

./pcap-linux.c:248:31: fatal error: netlink/genl/genl.h: No such file or directory compilation terminated Makefile:79 recipe for target 'pcap-linux.o' failed make: *** [pcap-linux.o] Error 1

What step am I missing?

I do not have internet access on this machine.


Your setup is missiing the following libraries:



You can easily find (on a machine with internet connection) the packages where you can find the missing files with the following apt command:

apt-file search /netlink/genl/genl.h

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.