On 10 Jul 2017, at 12:23, Ryan Ollos wrote:

If you must install on CentOS 5, I'd install Python but don't make it the default installation. Install to a path such a /opt/python27. Then, use a virtual environment that points to the 2.7 install for your Trac installation.

On our RHEL 5.x boxes we used the IUS repo to install their python27 RPMS, they didn't interfere/overlap with the system Python. They worked fine for us.

Unfortunately IUS migrated their RHEL 5 repo to their Archives so the setup isn't so straightforward now. They have an "ius-release" RPM for RHEL 5 in the Archives but the mirror list doesn't work, so you have to hand-hack it after installing it.

If James installs the following:

https://dl.iuscommunity.org/pub/ius/archive/Redhat/5/$basearch/ius-release-1.0-15.ius.el5.noarch.rpm

(Substitute "i386" or "x86_64" for $basearch first, obvs.)

then you can go into "/etc/yum.repos.d" and massage the "ius-archive.repo" file it installs - enable "baseurl" and comment out "mirrorlist". It should end up looking like this:

--
[ius-archive]
name=IUS Community Packages for Enterprise Linux 5 - $basearch - Archive
baseurl=http://dl.iuscommunity.org/pub/ius/archive/Redhat/5/$basearch
#mirrorlist=http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el5-archive&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY

[ius-archive-debuginfo]
name=IUS Community Packages for Enterprise Linux 5 - $basearch - Archive Debug
baseurl=http://dl.iuscommunity.org/pub/ius/archive/Redhat/5/$basearch/debuginfo
#mirrorlist=http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el5-archive-debuginfo&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY

[ius-archive-source]
name=IUS Community Packages for Enterprise Linux 5 - $basearch - Archive Source
baseurl=http://dl.iuscommunity.org/pub/ius/archive/Redhat/5/SRPMS
#mirrorlist=http://dmirr.iuscommunity.org/mirrorlist/?repo=ius-el5-archive-source&arch=source
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
--

At that point you should be able to do a "yum list python27" and install it from there. (They also have python31 RPMs for 3.1 as well.)

--
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to