原来系统本身自带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.
求教。。。


zhangwr 于 2009-06-10 20:37:26发表:
看过
太平桥 于 2008-05-03 11:53:25发表:
GCC如果不是强制安装,报什么错?
现在你在 终端 键入 cc 后看到什么?
(hl):hao
wgyzhechao 于 2008-05-03 10:21:46发表:
是的。我用的是安装光盘里面的那个gcc软件包,强制安装进去的。现在等于是gcc有安装进去,是不是还需要做别的设置?比如指定编译器的path之类的呢? 谢谢:0)1
太平桥 于 2008-05-02 19:56:03发表:
什么错误?
和编译安装报一样的错?
奶茶dsk 于 2008-05-02 19:50:19发表:
版本不兼容吧,为什么不装原来的版本那?
黄富强 于 2008-05-02 19:50:01发表:
同意二楼的说法
wgyzhechao 于 2008-05-02 19:39:59发表:
我强制安装了光盘里的gcc 然后再重新安装还是那个错误。
太平桥 于 2008-05-01 15:38:55发表:
因为没有了用于编译安装的编译器,可以选择安装gcc的rpm。
如果有请在configure 的时候 指明位置。
(hl):hao
[ 本帖最后由 太平桥 于 2008-5-2 19:55 编辑 ]