configure: error: can’t find pcap.h

Written by Yujin Boby

Edit in WordPress

When installing a software from source, i get error

configure: error: can't find pcap.h
  You're not going to get very far without libpcap.

To fix this on CentOS 7 server, run

yum -y install libpcap libpcap-devel