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

时间:2014-08-27 12:30:32

标签: linux gcc

当我尝试在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

请帮助我,我现在不知道该怎么做。在此先感谢。

3 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:1)

实际上,您收到的错误是因为您的RedHat系统未注册到Red Hat Subscription Manager!从错误消息中也很明显。

实际上,redhat是一个严格的组织,它坚持要在他们的网站正式下载包之前订阅它们!如果你还没有,你需要!如果你早些时候,可能你的订阅期已经结束!

如果您想从RedHat官方服务器下载它,如果没有订阅它们,您将无法以这种方式进行下载!请订阅或按照其他方式下载GCC,即直接从GCC网站或SOFTPEDIA---GCC(Linux)下载!

答案 2 :(得分:0)

有关您的信息,我在完全删除yum cache 6Server目录时遇到此错误。为了解决这个问题,我重新安装了我的机器。可能有一个我无法找到的更简单的解决方案。

相关问题