Chinaunix

标题: redhat AS2.1装gcc时出了点问题 [打印本页]

作者: at101    时间: 2005-06-23 22:57
标题: redhat AS2.1装gcc时出了点问题
我的系统是redhat AS2.1,由于装系统时并没装gcc,现在要用到,然后我就下了解个

gcc-3.4.0 。 然后 把tar解到$srcdir 下,并在与$srcdir建$objdir,然后在objdir下执行:
#../gcc-3.4.0/configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
../gcc-3.4.0/configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
checking host system type... i686-pc-linux-gnuoldld

请问,这是什么问题呢?
作者: at101    时间: 2005-06-23 23:24
标题: redhat AS2.1装gcc时出了点问题
搞明白了,他们说是先有鸡还是再有蛋的问题,
解决方法是:装个rpm的,呵呵。
作者: 網中人    时间: 2005-06-24 00:08
标题: redhat AS2.1装gcc时出了点问题
繼然都用 redhat 了, 跑一下 yum 或 up2date, 將 gcc 裝下來不就行了?
除非你有很強烈的理由非裝 source tarball 不可.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2