我正在尝试在 linux 服务器上安装编译器



当我尝试在linux中安装编译器时,我会收到以下错误。

$ yum install -y gcc
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-
              : manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There was an error communicating with RHN.
RHN Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
Unable to connect to the host and port specified

请帮帮我,我现在不知道该怎么办。提前感谢。

也许RedHat网站的这个解决方案有助于:https://access.redhat.com/solutions/253273

实际上,您收到的错误是因为您的RedHat系统没有注册到Red Hat Subscription Manager!从错误消息中也可以明显看出。

事实上,redhat是一个严格的组织,它要求你在从他们的网站上正式下载软件包之前订阅它们!如果你没有,你需要!如果你早一点,可能你的订阅期已经结束了!

如果你想从RedHat官方服务器下载,如果没有订阅,你就无法通过这种方式下载!请订阅或通过其他方式下载GCC,即直接从GCC网站或SOFTPEDIA-GCC(Linux)下载!

关于您的信息,我在完全删除我的yum-cache 6Server目录时出现了这个错误。为了解决这个问题,我重新安装了我的机器。也许有一个我找不到的更简单的解决方案。

最新更新