当我尝试安装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
有人能帮我解决这个问题吗?
当前回答
在我的情况下,pip无法安装库,我尝试了上面给出的解决方案,但没有一个有效,但下面的方法对我有效:
sudo apt upgrade gcc
其他回答
在我的情况下,pip无法安装库,我尝试了上面给出的解决方案,但没有一个有效,但下面的方法对我有效:
sudo apt upgrade gcc
使用Ubuntu 14.04 LTS和运行python 3.5的virtualenv,我必须做:
sudo apt-get install python3.5-dev
其他命令:
sudo apt-get install python-dev
sudo apt-get install python3-dev
没有帮助。我认为这是因为virtualenv需要依赖于系统范围的python-dev包,它必须匹配virtualenv的python版本。但是,使用上述命令安装python-dev for python 2。X和蟒蛇Ubuntu 14.04是3.4版,不是3.5版。
在我的案例中,是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
一切都好!
在安装ssdeep时,我得到了相同的错误,请检查实际的错误可能是其他的东西,就像我也得到了相同的,但在这个错误上面有一个错误模糊。h没有文件或目录,然后我尝试了这个 Apt-get -y安装libfuzzy-dev
魅力工作
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging 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
sudo easy_install greenlet
sudo easy_install gevent