当我尝试安装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
有人能帮我解决这个问题吗?
当前回答
对于Centos 7使用以下命令安装Python开发包
Python 2.7
Sudo yum安装python-dev
Python 3.4
Sudo yum安装python34-devel
如果您的问题仍然没有解决,然后尝试安装以下包-
Sudo yum安装libffe -devel 安装openssl-devel
其他回答
当我在Ubuntu 14.04上遇到同样的问题时,上面的答案都对我不起作用
然而,这解决了错误:
Sudo apt-get install python-numpy libicu-dev
Error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
执行sudo apt-get install python-dev解决了这个错误。
对我来说,它有助于安装libxml2-dev和libxslt1-dev。
sudo apt-get install libxml2-dev
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
很多时候,我在安装M2Crypto和pygraphviz时得到了相同的错误,并安装了批准的答案中提到的所有东西。但下面这行解决了我所有的问题与其他包在批准的答案太。
sudo apt-get install libssl-dev swig
sudo apt-get install -y graphviz-dev
这个swig包作为M2Crypto和graphviz-dev的解决方案拯救了我的生命。我希望这能帮助到一些人。
就像罗宾·温斯洛在评论中说的:
我在这里找到了解决方案:stackoverflow.com/a/5178444/613540
在我的例子中,我的完整错误信息是:
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我试图安装洪流:
sudo python3 setup.py install
与给定的stackoverflow链接,我解决这个问题:
sudo apt install zlib1g-dev
注意,以下软件包已经安装:
libxslt1-dev is already the newest version.
python3-dev is already the newest version.
libxml2-dev is already the newest version.
希望对大家有所帮助!