作者:暗影HK4164286 | 来源:互联网 | 2017-10-17 05:51
原来系统本身自带gcc 4.0 我卸载后,后来又安装gcc 3.4.6 提示:
用系统自带的添加删除程序出现:
Missing Dependency: libgomp = 4.1.2-33 is needed by package gcc
Missing Dependency: cpp = 4.1.2-33 is needed by package gcc
但是cpp libgomp 在有安装。
----
用源码安装:
[root@localhost gcc-3.4.6]# /opt/gcc-3.4.6/configure --prefix=/usr/local/gcc-3.4.6/
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/opt/gcc-3.4.6/configure: line 2339: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
求教。。。