- 论坛徽章:
- 0
|
各位师兄,我是个新手,现在是做网络管理的工作,现在想转行所以学习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
|
|