[root@localhost ~]# yum -y install gcc make Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Error: There are no enabled repos.
哈哈出现了这个问题”This system is not registered to Red Hat”
[root@localhost ~]# mount #看最后是否有 /dev/sr0 on /dvd....
开始装编译器
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
[root@localhost ~]# yum clean /all #清一下缓存 [root@localhost ~]# yum repolist -v #重新加载一下 [root@localhost ~]# yum -y install gcc gcc-c++ make Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 上次元数据过期检查:0:00:37 前,执行于 2022年11月02日 星期三 00时55分25秒。 错误: 问题 1: cannot install the best candidate for the job - nothing provides libgcc >= 8.5.0-4.el8_5 needed by gcc-8.5.0-4.el8_5.x86_64 - nothing provides libgomp = 8.5.0-4.el8_5 needed by gcc-8.5.0-4.el8_5.x86_64 问题 2: cannot install the best candidate for the job - nothing provides libstdc++ = 8.5.0-4.el8_5 needed by gcc-c++-8.5.0-4.el8_5.x86_64 (尝试添加 '--skip-broken' 来跳过无法安装的软件包 或 '--nobest' 来不只使用最佳选择的软件包)
这时候报错了。
确实,又报错了哈哈,应该是版本问题,还好susu也有讲,按照提示加上’–nobest’即可。
1
[root@localhost ~]# yum -y install --nobest gcc gcc-c++ make