Roy Triesscheijn’s Weblog

My programming world

How to install the TRAC project manager/bugtracker together with SVN on Windows

Posted by Roy Triesscheijn on December 1st, 2010

Now there are a lot of howto’s on how to install Edgewall’s TRAC, especially on their own website, but still it took me days to properly install TRAC on Windows. I had numerous nasty Python errors, and finding a SVN (subversion) repository system that worked properly with TRAC was quite a nightmare, because of this I present you this guide.

1.

Before you can install TRAC you have to download and install python from python.org the current version of TRAC (0.12) works with either Python 2.6 or Python 2.7. However there are no SVN bindings for Python 2.7 yet, so in this guide we assume that you’ve installed Python 2.6 in the folder “C:\Python26″.

After you’ve done this you should add the folder “C:\Python26″ and “C:\Python26\Scripts” to the PATH environment variable. If you don’t know how to do that, then please read this guide carefully.

2.

Because TRAC has actually numerous dependencies it’s very hard to install it using the TRAC Windows installer, which unfortunately isn’t aware of any of these dependencies. Luckily there is brilliant program for Python that is called easy-install/setup tools. You can download it from here. Just use the Windows Installer, it should automatically find your python directory.3.

Now we can actually install TRAC. Do this by starting the command prompt (in Windows Vista/7: go to the start menu and type “cmd”, it should appear. In Windows XP go to start, choose run type “cmd” and press OK).

Now in the command prompt type “easy-install TRAC==0.12″. After this is done run “easy-install fcrypt” to install an add-in of the UNIX crypt functionality which is used by the TRAC daemon.

4.

Now we have to install SVN. We need a specific version of SVN that has bindings for TRAC. For this how-to download the subversion installer from alagazam.net. Download the Subversion Windows Installer (Setup-Subversion-1.6.13.msi) and install it.

5.
Now download the Python bindings (svn-win32-1.6.13_py.zip) from alagazam.net. Extract the zip-archive and copy the folders libsvn and svn to “C:\Python26\. Now search both folders for files that start with an underscore (‘_’) and that end with ‘.dll’. Duplicate these files and change their extension to ‘.pyd’.

To elaborate: you should have now have the file ‘_core.dll’ and the file ‘_core.pyd’, etc…

6.
Congratulations, you have now successfully installed TRAC and SVN.

See the next post for tips on creating a TRAC environment, and how to run the TRACD daemon (so people can actually use your TRAC environment). Serving and creating SVN repositories is a bit out of scope, but take a look at the svnadmin create command and  at svnserve.

One Response to “How to install the TRAC project manager/bugtracker together with SVN on Windows”

  1. Roy Triesscheijn’s Weblog » Blog Archive » Managing TRAC environments Says:

    [...] How to install the TRAC project manager/bugtracker together with SVN on Windows [...]





Or leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>