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

问题描述 投票:0回答:1

我正在尝试使用以下教程在Linux服务器(Red Hat Enterprise Linux Server 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的新手。有谁知道如何解决这个问题?

python linux gitlab redhat
1个回答
2
投票

由于您未在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
© www.soinside.com 2019 - 2024. All rights reserved.