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?
In my case, it was oursql
that was causing the same(generic) error as below.
In file included from oursqlx/oursql.c:236:0:
oursqlx/compat.h:13:19: fatal error: mysql.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for oursql
Running setup.py clean for oursql
So, I knew that I need to have libmysqlcppconn-dev
package.
sudo apt-get install libmysqlcppconn-dev
And all good!
sudo apt-get install libmysqld-dev
and it worked for me.
In addition to some other helpful answers, if docker-compose brought you here--With your venv set, run:
easy_install docker-compose
While installing ssdeep i was getting same error Please check actual error can be something else Like i was also getting same but above this error there was an error fuzzy.h no file or directory and then i tried this
apt-get -y install libfuzzy-dev
Work like charm
TL;DR: run the below command
sudo apt-get install python2-dev gcc
I had this problem when trying to pip install a module for python2.7
.
Lots of answers mention that a fix for this is sudo apt-get install python-dev
. However, this did not work for me, as the package was not found. However, the command shown at the top of this comment exists, and I was finally able to pip install the module.
After installing a lot of libraries, the one that worked for me! was swig
:
sudo apt-get install swig
The error arose when installing python's M2Crypto
library.
:)
sudo apt-get install libffi-dev
works like charm