麦克雷 Mavom.cn

标题: 求教gcc怎么安装。。虚拟机上的。。 [打印本页]

作者: mr32eg8pz    时间: 2023-3-4 17:56
标题: 求教gcc怎么安装。。虚拟机上的。。
我弄了两天没弄好。。。

(, 下载次数: 0)
作者: 艾的民    时间: 2023-3-4 17:57
这么老的版本不建议使用,一定要用要光盘源安装
作者: gfwwxeiq60    时间: 2023-3-4 17:57
yum不行吗
(, 下载次数: 0)
作者: e7i2rv1n    时间: 2023-3-4 17:58
终端试一下gcc -version,发行版一般自带的
作者: 艾的民    时间: 2023-3-4 17:59
[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
一样的问题,大佬看一下,谢谢




欢迎光临 麦克雷 Mavom.cn (http://www.mavom.cn/) Powered by Discuz! X3.5