1. untar Trac source code
2. install Babel http://babel.edgewall.org/
Easy_install Babel = 0.9.5
3. install pysqlite http://code.google.com/p/pysqlite/downloads/list
$ Tar xvfz <version> .tar.gz
$ Cd <version>
$ Python setup. py build_static install
4. Trac
Sudo python setup. py install
5. install git plugin
Easy_install http://github.com/hvr/trac-git-plugin/tarball/master
Ln-s/usr/local/bin/git/usr/bin/git
GitError: GIT control files not found, maybe wrong directory?
The git repo wasn't owned by the user that Apache/mod_python runs.
6. Web setting
Yum install libtool httpd-devel Apr-devel
Download mod_fastcgi and install
$ Mkdir-P/var/www/html/TRAC
$ Trac-admin/var/www/html/TRAC initenv
$ Trac-admin/var/www/html/TRAC/deploy/tmp/TRAC
$ MV/tmp/TRAC/*/var/www/html/TRAC /.
$ Vim/var/www/html/TRAC/cgi-bin/TRAC. fcgi
Below import OS Add:
OS. Environ ['trac _ env_parent_dir '] = "/var/www/TRAC /"
$ CD/etc/httpd/CONF. d
$ Vi trac. conf
<Ifmodule mod_fastcgi.c>
Addhandler FastCGI-script. fcgi
Fastcgiconfig-Initial-env trac_env_parent_dir =/home/sysdata/TRAC/project/
</Ifmodule>
Loadmodule fastcgi_module modules/mod_fastcgi.so
ScriptAlias/TRAC/var/www/html/TRAC/cgi-bin/TRAC. fcgi
#/Etc/init. d/httpd restart
7. Git hook
Trac-post-receive-hook-0.12-only-master.py
8. install other TRAC plugins
Easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
Easy_install-u-Z http://trac-hacks.org/svn/customfieldadminplugin/0.11
Http://trac-hacks.org/wiki/DateFieldPlugin
Http://trac-hacks.org/wiki/NavAddPlugin
Http://trac-hacks.org/wiki/AutocompleteUsersPlugin
Http://trac-hacks.org/wiki/UserManagerPlugin