Installing Trac 0.12.x Python 2.6 on RHEL 5.8

A quick note to install those stuff.

Install EPEL repo (http://fedoraproject.org/wiki/EPEL).
yum install python26 python-devel subversion subversion-devel
Install setuptools
easy_install trac
wget http://subversion.tigris.org/downloads/subversion-1.6.17.tar.bz2
tar xjvf subversion-1.6.17.tar.bz2
cd subversion-1.6.17
wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
tar xzvf sqlite-amalgamation-3.6.13.tar.gz
mkdir sqlite-amalgamation
cp sqlite-3.6.13/sqlite3.c /home/sysadmin/subversion-1.6.17/sqlite-amalgamation/sqlite3.c
cd /usr/bin
rm python
ln -s python2.6 python
cd –
./configure
make
make swig-py
make install-swig-py
cp -R /usr/local/lib/svn-python/libsvn /usr/lib/python2.6/site-packages/
cp -R /usr/local/lib/svn-python/svn /usr/lib/python2.6/site-packages/

/sbin/service httpd restart

Leave a Reply

Your email address will not be published.