Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

pip

gcc

odoo

When I try to install odoo-server, I got the following error:

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

Could anyone help me to solve this issue?

like image 898
Madura Dissanayake Avatar asked Sep 26 '14 07:09

Madura Dissanayake


1 Answers

I encountered the same problem in college having installed Linux Mint for the main project of my final year, the third solution below worked for me.

When encountering this error please note before the error it may say you are missing a package or header file — you should find those and install them and verify if it works (e.g. ssl → libssl).

For Python 2.x use:

sudo apt-get install python-dev 

For Python 2.7 use:

sudo apt-get install libffi-dev 

For Python 3.x use:

sudo apt-get install python3-dev 

or for a specific version of Python 3, replace x with the minor version in

sudo apt-get install python3.x-dev 
like image 93
Paulie Avatar answered Sep 23 '22 02:09

Paulie