日期:2014-05-16  浏览次数:20640 次

red hat怎么安装gcc啊!总是出错,求助求助啊!!!yum源怎么改啊!!
[root@localhost ~]# cd --nodeps
bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]
[root@localhost ~]# rpm --nodeps
[root@localhost ~]# rpm --nodeps
[root@localhost ~]# rpm -q gcc
package gcc is not installed
[root@localhost ~]# mkdir /mnt/cdrom |mount /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@localhost ~]# vi /etc/yum.repos.d/rhel-debuginfo.repo 
[root@localhost ~]# yum install gcc (错误如下)
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
rhel-gcc | 1.3 kB 00:00  
rhel-gcc/primary | 226 kB 00:00  
rhel-gcc 809/809
Setting up Install Process
No package gcc available.
Nothing to do
[root@localhost ~]# 

yum源修改如下:[rhel-gcc]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug-gcc
baseurl=file:///mnt/cdrom/Workstation
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


我是想在虚拟机里面用iso镜像安装gcc的,求解决办法。急!!!!!!!!



------解决方案--------------------
系统不自带吗?

------解决方案--------------------
还是CentOS好, RedHat的要KEY。。。。