}

Bettercap Install Error: pcap.h Not Found

The error

While you are install gettercap and you get the error:

go/src/github.com/bettercap/bettercap/vendor/github.com/google/gopacket/pcap/pcap.go:22:18: fatal error: pcap.h: No such file or directory
 #include <pcap.h>

Solution

Try to install with apt:

sudo apt-get install libpcap-dev

Leonardo Lazzaro

Software engineer and technical writer. 10+ years experience in DevOps, Python, and Linux systems.

More articles by Leonardo Lazzaro