net-tools icon indicating copy to clipboard operation
net-tools copied to clipboard

compile error because pcap.h can't be found

Open endiancj opened this issue 3 years ago • 0 comments

When trying to build using the make command I get the error:

monitor_15_4.c:34:10: fatal error: pcap/pcap.h: No such file or directory

I managed to fix this by installing libpcap0.8-dev with:

sudo apt install libpcap0.8-dev

(Actually, I also installed libpcap0.8 (without the "-dev" suffix) so not sure which of the 2 packages fixed the issue)

But libpcap0.8-dev (or libpcap0.8) should probably be added as a prerequisite/dependency to net-tools.

endiancj avatar Jul 07 '21 13:07 endiancj