当我尝试安装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
有人能帮我解决这个问题吗?
当前回答
在安装了许多库之后,对我有用的那一个!大喝:
sudo apt-get install swig
安装python的M2Crypto库时出现错误。
:)
其他回答
在我的例子中,是缺少libffi-dev包。
工作:
sudo apt-get install libffi-dev
在Linux Mint中使用python3
$ sudo apt install build-essential python3-dev
应该足够了
在安装了许多库之后,对我有用的那一个!大喝:
sudo apt-get install swig
安装python的M2Crypto库时出现错误。
:)
在我的案例中,是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 python3-dev
如果上面的命令不起作用,请尝试以下两个命令
sudo apt-get install gcc python-dev
当您希望它在您的机器中为默认python版本安装时,就会出现这种情况。
Or
sudo apt-get install gcc python3.x-dev
python3的地方。X表示安装在您机器上的python的版本号。