Last night i took a stab at installing
Trac and failed. It was late (about 3am) and I needed sleep so I left it, today I've got it working but had to hop over a few hurdles to get there.
Firstly I'm trying to install the
latest 'stable' version of Trac which is 0.10.4, this unfortunately requires the
ClearSilver libraries which
ho-hum is *not* included with Trac now. This means you have to build it from source and let me tell you that chances are (atleast on feisty) it wont work straight from the source files. So let me go through it for you:-)
Firstly we want to get ClearSilver installed and ready before we follow the
TracInstall Guide and continue from there.
Building ClearSilver
Right lets get to work.
- First thing we have to do is to get all the dependencies.
$ sudo apt-get build-dep python-dev python-clearsilver
-
Then once thats retrieved, download the latest (as of writing 0.10.4) of ClearSilver:
$ wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz
$ tar xzvf clearsilver-0.10.4.tar.gz
-
Then we need to make two modifications to the
configure and configure.in files. That is to add the correct version of python to the list of allowed python distro's. (v2.5). Easiest way to do this is to knock up Nano and find 'python_version=' (or goto line 6560 in configure and line 250 in configure.in. I'm too lazy so i used WhereIs (CTRL+W):
$ nano configure
$ nano configure.in
-
Now that we have modified the configure files lets configure and make it.
$ ./configure --with-python=/usr/bin/python2.5
$ make
$ sudo make install
- After a few minutes it should build and (for me it threw a few errors which I ignored) now its time to copy the shared file 'neo_cgi.so' to our python site packages:
$ sudo cp -bi python/neo_cgi.so /usr/lib/python2.5/site-packages/neo_cgi.so
-
Almost there! Now its time to run the Python installation app for Trac and continue on with the TracInstall Guide:
$ python ./setup.py install
This got Trac installed, however I got an error trying to access my SVN repo:
TracError: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.
*doh* If you get a similar error simply install the Python bindings for SVN:
$ sudo apt-get install python-subversion
This will hopefully fix it!
Cool utility to mirror SVN Repo's!
If you have a remote SVN Repo you want Trac to make use of then there's no option (yet) to do that natively. However this is the open-source world and *someone* has already worked on addressing this need with