Error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I am trying to install pcapy, but outgoing notifications like this:

cc1plus: warning: the command line parameter '-Wstrict-prototypes is valid for C / ObjC, but not for C ++ [enabled by default]

pcapdumper.cc:11:18: fatal error: pcap.h: no such file or directory

#include

     ^

compilation is complete. Error: command "x86_64-linux-gnu-gcc" failed with exit status 1

I am using ubuntu 14.04

+4
source share
1 answer

Installing libraries, libpcap-dev and libpq-dev solved the problem.

sudo apt-get install libpcap-dev libpq-dev

Ubuntu 16.04.

+5

Source: https://habr.com/ru/post/1611165/


All Articles