Recently I needed to demo a ticketing application, and I chose to give Trac a try. However, I soon ran into version and compatibility problems, but after selecting the correct versions of the Trac components, I finally got the application to run.
You need:
- Python 2.4
- Clearsilver 0.9.14 for Python 2.4
- PySql 2.3 for Python 2.4
- Trac 0.10.4
- RunAsService
Installation:
- Python installs from an .msi file
- Make sure you add the Python directory to the system PATH variable
- Install clearsilver.exe
- Install pysqlite.exe (both installers find the Python 2.4 installation)
- Extract the Trac archive, and follow the installation documentation (in the most basic version, this means:
- type “python setup.py install”
- enter the name of the Trac installation
- hit enter until finished
- Open command prompt in the Scripts subdirectory of Python
- Start the Trac demon
- cd c:\python24\scripts
- python tracd –port 8000 [trac installation path]
- Point your browser to localhost:8000, you should see the Trac screen
- Close command prompt (seems you cannot break or ctrl-Z python)
- Create a batch file (.cmd or .bat) containing the two commands above
- Extract runasservice
- Install runasservice typing “install.cmd localsystem”
- Edit the runasservice.exe.config file, add to section <service.settings>:
<service>
<name>tracd</name>
<executable>C:\trac\emx\tracd.bat</executable>
<parameters></parameters>
</service>
- Start runasservice in the Service Manager
- Open address in browser again
- Should work
December 11, 2007 at 9:30 |
[...] http://devio.wordpress.com/2007/12/03/installing-trac-on-windows/ [...]
September 28, 2008 at 21:03 |
Hi Devio,
I also wrote a guide on how to install Trac on a Windows box, no Apache. Your readers might find it interesting.
http://how-to-solutions.com/how-to-install-trac-on-windows.html