当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当我尝试安装doo-server时,我得到了以下错误:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
有人能帮我解决这个问题吗?
当前回答
尽管这是一个老问题,我还是要补充一下我的观点。
我认为正确的答案取决于gcc编译器的错误消息,比如“Missing xxxx.h”
这在某些情况下可能会有所帮助:
sudo apt-get install build-essential python-dev
其他回答
这招对我很管用:
安装zlib1g-dev
在我的案例中,是oursql导致了如下所示的相同(通用)错误。
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
因此,我知道我需要libmysqlcppconn-dev包。
sudo apt-get install libmysqlcppconn-dev
一切都好!
$ sudo apt-get install gcc
$ sudo apt-get install python-dateutil python-docutils python-feedparser python-gdata python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi
或者试试这个:
$ sudo apt-get install libxml2-dev libxslt1-dev
尽管这是一个老问题,我还是要补充一下我的观点。
我认为正确的答案取决于gcc编译器的错误消息,比如“Missing xxxx.h”
这在某些情况下可能会有所帮助:
sudo apt-get install build-essential python-dev
Error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
执行sudo apt-get install python-dev解决了这个错误。