sudo yum install gcc Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. There are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable <repo> To enable custom repositories: yum-config-manager --enable <repo>
时间: 2024-01-05 20:38:14 浏览: 330
这是一个系统错误提示,意思是说你的系统没有与 entitlement 服务器注册,因此无法使用 yum 安装 gcc。你可以使用 subscription-manager 命令进行注册,或者使用 yum-config-manager 命令启用自定义仓库。具体操作步骤如下:
1. 使用 subscription-manager 命令进行注册:
sudo subscription-manager register
2. 安装 Red Hat Subscription Management 插件:
sudo yum install subscription-manager
3. 启用 Red Hat Subscription Management 仓库:
sudo subscription-manager repos --enable rhel-7-server-rpms
4. 安装 gcc:
sudo yum install gcc
阅读全文