在 RedHat Enterprise Server 5.5 上安装 python26 时出错

Error when installing python26 on RedHat Enterprise Server 5.5

我正在尝试使用以下教程在 Linux 服务器(Red Hat Enterprise Linux 服务器版本 5.5)上安装 GitLab 社区版。

Installing GitLab on RedHat Enterprise 5 RHEL 5

但是当我尝试按照教程安装 python26 时,出现以下错误。

# yum install python26
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package python26 available.
Nothing to do

我有一些使用 Ubuntu 的经验,但我是 Red Hat 的新手。有谁知道如何解决这个问题?

因为您没有在 RHN 注册,您可以使用替代的存储库来安装这个包。一个这样的存储库是 geekymedia.com centos 存储库。

要将存储库添加到您的系统,

cd /etc/yum.repos.d
wget http://mirrors.geekymedia.com/centos/geekymedia.repo

要安装 python26 包,

yum install python26
unlink /usr/bin/python2
cd /usr/bin/
ln -s python26 python2