找回密码
 立即注册
  • QQ空间
  • 回复
  • 收藏

求教gcc怎么安装。。虚拟机上的。。

我弄了两天没弄好。。。

求教gcc怎么安装。。虚拟机上的。。-1.jpg
回复

使用道具 举报

大神点评(5)

艾的民 2023-3-4 17:57:40 显示全部楼层
这么老的版本不建议使用,一定要用要光盘源安装
回复 支持 反对

使用道具 举报

gfwwxeiq60 2023-3-4 17:57:55 显示全部楼层
yum不行吗
求教gcc怎么安装。。虚拟机上的。。-1.png
回复 支持 反对

使用道具 举报

e7i2rv1n 2023-3-4 17:58:10 显示全部楼层
终端试一下gcc -version,发行版一般自带的
回复 支持 反对

使用道具 举报

艾的民 2023-3-4 17:59:01 显示全部楼层
[root@dermei  gmp-build]# ../configure --prefix=/usr/local/gcc/gmp-4.3.2 --build=x86_64-linux
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=64
checking compiler gcc -O2 -pedantic -m64 ... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
回复 支持 反对

使用道具 举报

alisajs16 2023-3-4 17:59:59 显示全部楼层
一样的问题,大佬看一下,谢谢
回复 支持 反对

使用道具 举报

说点什么

您需要登录后才可以回帖 登录 | 立即注册
HOT • 推荐