Trac + Subversion on CentOS
The new app will be running on a VDS from Myriad Network for the moment. To be more precise, I find that their $56.95 per month package gives enough room to test the waters without any big initial investment. Myriad runs CentOS and to be honest, we ran into a couple of problems installing what was supposed to be very easy.
Here is a quick documentation of how we finally got it to run.
IMPORTANT: The following steps have been tested and worked for us. In no way do I guarantee they will work for every CentOS configuration and strongly suggest you do things carefully and read more documentation on the Trac and Subversion sites.
Installing Trac
- Make sure you have at peast Python 2.4 (otherwise, get ready to face some serious issues)
- Download the latest Trac version - here
- Download ClearSilver - here
- Download Swig - here
- Download SQLite - here
- Download PySQLite - here
- Install Trac
- Extract files
- Change to extracted files’ directory
- Run the following command: python setup.py install
- Install ClearSilver, Swig, SQLite, PySQLite. For each:
- Extract files
- Change to extracted files’ directory
- Run: ./configure
- Run: male && make install
- Move svnlib to python libraries directory: cp -r /path/to/svnlib /path/to/python2.x/site-packages/
- Test svn bindings from Python CLI
- Run: python
- Run: import svn core
- If everything is ok, you shouldn’t get any errors
Installing Subversion
- Download the latest version of Subversion - here
- Download the latest deps file - here
- Extract subversion
- Extract deps
- Copy/move extracted deps folder content into Subversion root directory
- Run: ./configure –without-neon
- Run: make && make swig-py && make install
Creating a repository
- Run: svnadmin create /path/to/repo
- Change to /path/to/repo/conf and edit svnserve.conf, disable authz-db
- To start SVN as a standalone server, run: svnserve -d -r /path/to/repo
- You can optionally add –listen-port PORT in the command arguments
Setup Trac for repository
- Run: trac-admin path/to/trac-env-root initenv
- Select a project name
- Enter path to your subversion repository
- Run: tracd -d -p [PORT] /path/to/trac-env/root /path/to/another-trac-en-root
Trackbacks
Use this link to trackback from your own site.

