误删x86_64-linux-gnu,命令“x86_64-linux-gnu-gcc”失败,退出状态为1

我试图安装“scholarly”软件包,但始终收到以下错误: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/

已经在下面的文章中尝试了解决方案,但没有成功:

要在 Windows 上使用 MinGW-w64 安装 x86_64-linux-gnu-gcc 工具链和编译器,可以按照以下步骤操作: 1. 下载 MinGW-w64 安装器 可以从 MinGW-w64 官网(https://sourceforge.net/projects/mingw-w64/files/)下载 MinGW-w64 安装器。建议下载最新版本的稳定版(Stable Releases)。 2. 安装 MinGW-w64 运行 MinGW-w64 安装器,并按照提示进行安装。在安装过程中,需要选择以下配置: - Architecture:选择 x86_64。 - Threads:选择 posix。 - Exception:选择 seh。 - Build revision:选择最新版本。 - Destination folder:选择安装目录,例如 C:\mingw-w64。 3. 添加环境变量 将 MinGW-w64 的 bin 目录添加到 PATH 环境变量中。例如,如果 MinGW-w64 安装在 C:\mingw-w64 目录下,则需要将 C:\mingw-w64\bin 添加到 PATH 环境变量中。 4. 安装 x86_64-linux-gnu-gcc 工具链 使用 MinGW-w64 的 Pacman 包管理器安装 x86_64-linux-gnu-gcc 工具链。打开命令提示符或 PowerShell,进入 MinGW-w64 的 bin 目录,然后运行以下命令: ``` pacman -S mingw-w64-x86_64-gcc ``` 这将安装 x86_64-linux-gnu-gcc 工具链及其依赖项。 5. 验证安装 运行以下命令验证 x86_64-linux-gnu-gcc 工具链是否安装成功: ``` x86_64-linux-gnu-gcc --version ``` 如果输出 x86_64-linux-gnu-gcc 的版本信息,则说明安装成功。 注意:在使用 MinGW-w64 的 Pacman 包管理器安装软件包时,可能需要使用管理员权限运行命令提示符或 PowerShell。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值