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?
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
Python.h is nothing but a header file. It is used by gcc to build applications. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications.
$ sudo apt-get install python-dev
# apt-get install python-dev
Try installing these packages.
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-pil python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev libssl-dev sudo easy_install greenlet sudo easy_install gevent
You need to install these packages:
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev
For Python 3.4 use:
sudo apt-get install python3.4-dev
For Python 3.5 use:
sudo apt-get install python3.5-dev
For Python 3.6 use:
sudo apt-get install python3.6-dev
For Python 3.7 use:
sudo apt-get install python3.7-dev
For Python 3.8 use:
sudo apt-get install python3.8-dev
... and so on ...
Professional-quality code does more than just run without bugs. It’s clean, readable, and easy to maintain. To step up from a capable Python coder to a professional developer, you need to learn indu...
This book is an indispensable guide focuses on Machine Learning and R Programming, in an instructive and conversational tone which helps them who want to make their career in Big Data Analytics/ Data ...
The rate at which we produce data is growing steadily, thus creating even larger streams of continuously evolving data. Online news, micro-blogs, search queries are just a few examples of these contin...
Learning to code is tremendous fun as you can get instant results, no matter how much more you have to learn. In fact, it’s such fun creating games and programs that it feels effortless once you’r...