gpt4 book ai didi

linux - 在不使用 yum 的情况下在 AWS EC2 上安装 gcc?

转载 作者:IT王子 更新时间:2023-10-29 06:03:15 25 4
gpt4 key购买 nike

我正在尝试在 EC2 上安装 Redis,但它需要 gcc。当我尝试 gcc 时没有安装。

然后我尝试手动安装gcc并得到以下错误:

configure: error: could not find a working compiler, see config.log for details

我该如何解决这个问题?

最佳答案

如果您使用标准的 AMI Linux 实例,只需运行以下命令即可安装 gcc:

sudo yum groupinstall "Development Tools"

在 SuSE 实例上,您可以尝试:

sudo zypper install gcc

关于linux - 在不使用 yum 的情况下在 AWS EC2 上安装 gcc?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32089252/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com