标题: 各位师兄,请教一个安装gcc的问题 [打印本页] 作者: 45637050 时间: 2012-05-07 17:34 标题: 各位师兄,请教一个安装gcc的问题 各位师兄,我是个新手,现在是做网络管理的工作,现在想转行所以学习linux,做运维的工作,这段时间在调试安装,在装gcc的时候遇到问题,老是搞不好!
我下载的源码包装的话,可是在编译的时候就提示没有gcc,没办法安装:
./configure --prefix=/usr/local/gcc
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/gcc-4.6.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
没办法安装,然后我就下了一个rpm安装包:
rpm -ivh gccxml-debuginfo-0.9.0-0.7.20111218.el4.i386.rpm --force --nodeps
warning: gccxml-debuginfo-0.9.0-0.7.20111218.el4.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 217521f6: NOKEY
Preparing... ########################################### [100%]
1:gccxml-debuginfo ########################################### [100%]
可是也没办法安装,请师兄帮帮忙!感谢!
rpm -q gcc
package gcc is not installed
作者: chenyx 时间: 2012-05-07 17:45
yum install gcc.
楼主你的那个不是gcc的包作者: 45637050 时间: 2012-05-07 17:49
忘记写了,我用yum来安装过
yum install gcc
Loaded plugins: rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package gcc available.
Error: Nothing to do
有没有rpm安装包提供一个呢,我找了半天没找到!作者: 45637050 时间: 2012-05-07 17:51
是没有注册红帽子的缘故吗?作者: chenyx 时间: 2012-05-07 19:01
没注册,可以用dvd架设本地源,yum安装软件.作者: dooros 时间: 2012-05-07 19:33
找到iso里面有gcc的rpm作者: aindk 时间: 2012-05-08 00:29 回复 5# chenyx