User:KurtStephens

I've attempted to follow the directions for installing Trac on dreamhost by following the directions listed at Python, Clearsilver, SQLite, PySQLite, SWIG, Subversion Installation. I decided that a complete installation script is in order:

This script will install into $HOME/local, rather than $HOME, as I like to keep my home directory root clean from 3rd-party software. You can run the script with  before the script on the same command line, if you want it to install somewhere else:

> prefix="$HOME/wee-hoo-haa-here" sh build.trac.sh

Enjoy!

BTW: I will keep the http://kurtstephens.com/pub/dreamhost/trac files up to date, I cannot guarantee the accuracy of this page.

--KurtStephens 23:39, 5 Apr 2006 (PDT)

http://kurtstephens.com/pub/dreamhost/trac/bashrc:
 * 1) This script has NO WARRANTY, swim at your own risk.

PATH="$HOME/bin:$PATH" prefix="$HOME/local" PATH="$prefix/bin:$PATH"; export PATH LD_LIBRARY_PATH="$prefix/lib/:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH LD_RUN_PATH="$prefix/lib/:$LD_RUN_PATH"; export LD_RUN_PATH PYTHONPATH="$prefix/lib/svn-python:$prefix/lib/python2.3/site-packages:$PYTHONPATH"; export PYTHONPATH

http://kurtstephens.com/pub/dreamhost/trac/bin/build.trac.sh: set -x
 * 1) !/bin/bash
 * 2) This script has NO WARRANTY, swim at your own risk.

prefix="${prefix:-$HOME/local}"

mkdir -p "$prefix"/{archive,src,bin,lib,include}

PATH="$prefix/bin:$PATH"; export PATH LD_LIBRARY_PATH="$prefix/lib/:$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH LD_RUN_PATH="$prefix/lib/:$LD_RUN_PATH"; export LD_RUN_PATH

cd "$prefix"/src

(set -e cd ../archive wget http://python.org/ftp/python/2.3.5/Python-2.3.5.tgz wget http://www.clearsilver.net/downloads/clearsilver-0.10.2.tar.gz wget http://www.sqlite.org/sqlite-3.3.4.tar.gz wget http://initd.org/pub/software/pysqlite/releases/2.0/2.0.7/pysqlite-2.0.7.ta r.gz wget http://umn.dl.sourceforge.net/sourceforge/swig/swig-1.3.29.tar.gz wget http://subversion.tigris.org/downloads/subversion-1.3.1.tar.gz wget http://ftp.edgewall.com/pub/trac/trac-0.9.4.tar.gz ) || exit $?
 * 1) Python 2.3.5
 * 1) Clearsilver 0.10.2
 * 1) SQLite 3.3.4
 * 1) PySQLite 2.0.7
 * 1) Swig 1.3.29
 * 1) Subversion 1.3.1
 * 1) Trac 0.9.4

tar -zxf ../archive/Python-*.tgz ( cd Python-*/ ./configure --prefix="$prefix" make make install )
 * 1) Python 2.3.5

tar -zxf ../archive/clearsilver-*.tar.gz ( cd clearsilver-*/ sed -i "s@/usr/local/bin/python@/usr/bin/env python@g" scripts/document.py PYTHON_SITE=`$prefix/bin/python -c "import sys; print [path for path in sys.path if path.find('site-packages') != -1][0]"` \ ./configure --with-python="$prefix/bin/python" --prefix="$prefix" --disable-ruby --disable-java --disable-apache --disable-csharp --disable-perl make make install )
 * 1) Clearsilver 0.10.2
 * 1) Trac fixes

tar -zxf ../archive/sqlite-*.tar.gz ( cd sqlite-*/ ./configure --prefix="$prefix" --enable-threadsafe make make install ) ln -s sqlite3 ../bin/sqlite
 * 1) SQLite 3.3.4

tar -zxf ../archive/pysqlite-*.tar.gz ( cd pysqlite-*/ sed -i "s@^include_dirs =.*@include_dirs = ['$prefix/include']@" setup.py sed -i "s@^library_dirs =.*@library_dirs = ['$prefix/lib']@" setup.py $prefix/bin/python setup.py build $prefix/bin/python setup.py install )
 * 1) PySQLite 2.0.7

tar -zxf ../archive/swig-*.tar.gz ( cd swig-*/ ./configure --prefix="$prefix" --with-python="$prefix/bin/python" make make install )
 * 1) Swig 1.3.29

tar -zxf ../archive/subversion-*.tar.gz ( cd subversion-*/ ./configure PYTHON=$prefix/bin/python --prefix=$prefix --with-swig=$prefix/bin/s wig --without-berkeley-db --with-ssl --with-zlib (cd apr/ && make && make install) (cd apr-util/ && make && make install) (cd neon/ && make && make install) make make swig-py make install-swig-py make install make install-swig-py # 2 times a charm echo $prefix/lib/svn-python > $prefix/lib/python2.3/site-packages/subversion.pth $prefix/bin/python -c "from svn import client" )
 * 1) Subversion 1.3.1
 * 1) cd $HOME/lib/python2.3/site-packages
 * 2) mv libsvn libsvn.b0rk
 * 3) ln -s /usr/lib/python2.3/site-packages/libsvn
 * 4) ln -s /usr/lib/python2.3/site-packages/svn

tar -zxf ../archive/trac-*.tar.gz ( cd trac-*/ $prefix/bin/python setup.py install --prefix="$prefix" (cd $prefix/bin && sed -i 's,/usr/bin/python,/usr/bin/env python,' trac-admin tr acd tracdb2env) )
 * 1) Trac 0.9.4

http://kurtstephens.com/pub/dreamhost/trac/cm.how2vid.com: HOME="${HOME:-/home/how2vidcm}" . $HOME/.bashrc
 * 1) !/bin/bash

export TRAC_ENV="$HOME/trac.how2vid.com"

exec "$prefix/share/trac/cgi-bin/trac.fcgi"