Installing and running Trac on a Dreamhost VPS

From JJBwiki

Jump to: navigation, search

[edit] Python, ez_setup, and Python packages

$ cd
$ cd src
$ wget http://python.org/ftp/python/2.5.1/Python-2.5.1.tar.bz2
$ tar xjf Python-2.5.1.tar.bz2
$ cd Python-2.5.1
$ ./configure --prefix=/home/jjb && make && make install
$ cd ..
$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ ~/bin/python ez_setup.py
$ ~/bin/easy_install-2.5 Pygments
$ ~/bin/easy_install-2.5 Genshi
$ ~/bin/easy_install-2.5 Trac

[edit] Subversion (and APR and APR-util)

$ cd
$ cd src
$ wget http://ossavant.org/apache/apr/apr-0.9.17.tar.bz2
$ tar xjf apr-0.9.17.tar.bz2
$ cd apr-0.9.17
$ ./configure && make
$ cd ..
$ wget http://ossavant.org/apache/apr/apr-util-0.9.15.tar.bz2
$ tar xjf apr-util-0.9.15.tar.bz2
$ cd apr-util-0.9.15
$ ./configure --with-apr=/home/jjb/src/apr-0.9.17 && make
$ cd ..
$ wget http://subversion.tigris.org/downloads/subversion-1.4.2.tar.bz2
$ tar xjf subversion-1.4.2.tar.bz2
$ cd subversion-1.4.2
$ ./configure --with-apr=/home/jjb/src/apr-0.9.17 --with-apr-util=/home/jjb/src/apr-util-0.9.15 --prefix=/home/jjb/ && make swig-py && make install-swig-py
$ ln -s /home/jjb/lib/svn-python/libsvn /home/jjb/lib/python2.5/site-packages/
$ ln -s /home/jjb/lib/svn-python/svn /home/jjb/lib/python2.5/site-packages/

[edit] Instantiating a project

$ mkdir trac
$ ~/bin/trac-admin trac/PROJECTNAME initenv
Personal tools