命令'x86_64-linux-gnu-gcc'失败,退出状态为1 [英] command 'x86_64-linux-gnu-gcc' failed with exit status 1

查看:3028
本文介绍了命令'x86_64-linux-gnu-gcc'失败,退出状态为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装学术软件包,但我一直收到这个错误:

  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE = 2 -g -fstack-protector-strong -Wformat -Werror = format-security -fPIC -I /usr/include/python2.7 -c build / temp.linux-x86_64-2.7 / _openssl.c -o build / temp.linux-x86_64-2.7 / build / temp.linux-x86_64-2.7 / _openssl.o 
build / temp.linux-x86_64-2.7 / _openssl.c:434:30:致命错误:openssl / opensslv.h:没有这样的文件或目录
编译终止。

错误:命令'x86_64-linux-gnu-gcc'失败,退出状态1


命令/ usr / bin / python -u -c导入setuptools,tokenize; __ file __ ='/ tmp / pip-build-0OXGEx / cryptography / setup.py'; exec(getattr(tokenize,'open',open)(__ file __).read().example('\\ \\ n','\\\
'),__file__,'exec'))install --record /tmp/pip-EdgZGB-record/install-record.txt --single-version-external-managed - -compile失败,错误代码为1 / tmp / pip-build-0OXGEx / cryptography /

已经尝试了以下文章中的解决方案,但它没有奏效:

pip install lxml error

解决方案

我有同样的问题。
这个帮了我:

pre $ sudo apt-get install build-essential libssl-dev libffi-dev python-dev

如果您使用python3,请尝试替换 python-dev python3-dev


I tried to install "scholarly" package, but I keep receiving this error:

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Command "/usr/bin/python -u -c "import setuptools,tokenize;__file__='/tmp/pip-build-0OXGEx/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-EdgZGB-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-0OXGEx/cryptography/

Already tried the solutions in the following post, but it didnt work:

pip install lxml error

解决方案

I had the same problem. This one helped me:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

If you using python3, try to replace python-dev with python3-dev

这篇关于命令'x86_64-linux-gnu-gcc'失败,退出状态为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆