Bayu Kurniawan
Bayu Kurniawan

Reputation: 71

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

i try install pcapy, but outgoing notifications like this :

cc1plus: warning: command line option ‘-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 terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

i use ubuntu 14.04

Upvotes: 7

Views: 19266

Answers (2)

Renan Moura
Renan Moura

Reputation: 55

i have the same problem ... on ubuntu 20.10. Basicaly the problema was... theres no python2.7 on this release ... i solved doing this steps...

this part ll install general packages for python development tools on default python version... try if is solved ... if not...

1 - sudo apt-get install python-dev

try install to especifically python version u r using...example if u r using python 3.6 then u ll type "sudo apt-get install python3.6-dev -y" ...

2 - sudo apt-get install python3.x-dev -y

if instead not solve the problem try to remake the link on bin python directory doing like this...

3 - rm -rf /bin/python3 && ln -s /usr/bin/python3.x  /usr/bin/python3
4 - source ~/.bashrc
5 - sudo apt update -y && sudo apt upgrade -y && sudo apt dist-upgrade -y

sudo apt-get install libpcap-dev libpq-dev -y

Upvotes: 2

sk1pro99
sk1pro99

Reputation: 987

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

sudo apt-get install libpcap-dev libpq-dev

Tested on Ubuntu 16.04.

Upvotes: 8

Related Questions