Installing Trac in Fedora Core 5

Trac is an Open Source web application for bug tracking. I have reviewed the available Open Source bug tracking software such as Trac and Bugzilla and none of them seems to have an easy straight forward install. So I started with Trac as I have used it before and its installation instructions seem to be less that the Bugzilla ones. So here is my try on my Fedora 5 Linux server.

Trac Requirements (quoted from Trac website):

To install Trac, the following software packages must be installed:

  • Python, version >= 2.3
    • if using mod_python together with xml-related things, use python-2.5. expat is namespaced there and does not cause apache to crash any more(see  here for details).
    • For RPM-based systems you might also need the python-devel and python-xml packages.
    • See instructions in TracOnWindows/Python2.5
  • setuptools, version >= 0.6
  • Genshi, version >= 0.5 (was version >= 0.4.1 on previous 0.11 release candidates)
  • You also need a database system and the corresponding python drivers for it. The database can be either SQLite, PostgreSQL or MySQL (experimental).
  • Optional if some plugins require it:  ClearSilver

Verify Python is installed:  

$ yum list python

and if need be

$ yum update python

I had version  2.4.3-9.FC5 installed.

Install  setuptool

# wget http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c9-py2.4.egg#md5=260a2be2e5388d66bdaee06abec6342a

# chmod +x setuptools-0.6c9-py2.4.egg

#./setuptools-0.6c9-py2.4.egg

# easy_install
error: No urls, filenames, or requirements specified (see --help)

all good, now over to the next step

Install Genshi

I don’t even know what Genshi is 🙂 anyway installing it was so easy:

[root@future ~]# easy_install Genshi
Searching for Genshi
Reading http://pypi.python.org/simple/Genshi/
Reading http://genshi.edgewall.org/
Reading http://genshi.edgewall.org/wiki/Download
Best match: Genshi 0.5.1
Downloading http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1-py2.4-linux-i686.egg
Processing Genshi-0.5.1-py2.4-linux-i686.egg
Moving Genshi-0.5.1-py2.4-linux-i686.egg to /usr/lib/python2.4/site-packages
Adding Genshi 0.5.1 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/Genshi-0.5.1-py2.4-linux-i686.egg
Processing dependencies for Genshi
Finished processing dependencies for Genshi
[root@future ~]#

Cool, job done, now next step

Installing the database system and python drivers

[root@future ~]# yum list sqlite
sqlite.i386                              3.3.3-1.2              installed

[root@future ~]# yum list python-sqlite2

Available Packages
python-sqlite2.i386                      1:2.3.3-1.fc5          extras

[root@future ~]# yum install python-sqlite2

Installed: python-sqlite2.i386 1:2.3.3-1.fc5
Complete!

Sweet, now what is next?

Optional Requirements

Webserver check

[root@future ~]# yum list mod_python

Installed Packages
mod_python.i386                          3.2.8-3                installed

Subversion check

[root@future ~]# yum list subversion
Installed Packages
subversion.i386                          1.3.0-4.2              installed
Available Packages

subversion.i386                          1.3.2-2.1              updates
[root@future ~]# yum update subversion

Updated: subversion.i386 0:1.3.2-2.1
Complete!

Install Trac

[root@future ~]# easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11.2.1
Downloading http://svn.edgewall.org/repos/trac/tags/trac-0.11.2.1
Doing subversion checkout from http://svn.edgewall.org/repos/trac/tags/trac-0.11.2.1 to /tmp/easy_install-OpAx-y/trac-0.11.2.1
Processing trac-0.11.2.1
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-OpAx-y/trac-0.11.2.1/egg-dist-tmp-ssiwz5
Adding Trac 0.11.2.1 to easy-install.pth file
Installing trac-admin script to /usr/bin
Installing tracd script to /usr/bin

Installed /usr/lib/python2.4/site-packages/Trac-0.11.2.1-py2.4.egg
Processing dependencies for Trac==0.11.2.1
Finished processing dependencies for Trac==0.11.2.1
[root@future ~]#

Installing the Trac environment

[root@future trac]# trac-admin /backup1/trac/TestProj initenv

Project environment for 'TestProj' created.
You may now configure the environment by editing the file:
/backup1/trac/TestProj/conf/trac.ini
If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:
tracd --port 8000 /backup1/trac/TestProj

Then point your browser to http://localhost:8000/TestProj.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

http://trac.edgewall.org/

Congratulations!

[root@future trac]#

All Done.