Installing Trac on Slackware 10.2 or 11.0
Warning: as always, start by reading the generic TracInstall instructions. If you have platform dependent issues, you might find hints
Installing trac involves a lot of weirdness so I figured I'd share my final solution for getting everything working with the latest versions.
Make sure you are user root when doing the installation commands.
Base Setup
Make sure you have apache, python and apr (Apache Portable Runtime) installed. Make sure you _do not_ have subversion installed (use pkgtool to verify).
Sqlite
Get the sqlite-3.3.x tarball from http://www.sqlite.org/download.html Simply:
./configure make make install
PySqlite
Get the pysqlite-2.x.x tarball from http://initd.org/tracker/pysqlite Again, simple:
python setup.py install
Swig
Get swig-1.3.25 (Be carefull with later versions, they are not guarenteed to work well)
./configure make make install
Subversion
This is the big nasty. Get subversion-1.3.0 tarball.
In ticket #2472, there is an attachment called patch1.patch. Save this file in the extracted subversion-1.3.0 directory.
Look to ticket #2620. Somewhere in there you'll see a patch for the file subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c. Remove the red lines by hand [someone please make a patch] to patch it by hand.
Save this file:
http://trac.edgewall.org/attachment/ticket/2611/application_pool_race_condition_fix.txt?format=raw
As patch3.patch.
patch -p0 < patch1.patch patch -p0 < patch3.patch ./configure --with-swig --enable-swig-bindings=python make extraclean ./autogen.sh ./configure --with-swig --enable-swig-bindings=python make make swig-py make install-swig-py make install
At this point subversion and the python bindings are installed. Now we need to "enable" those bindings:
echo /usr/local/lib/svn-python > /usr/lib/python2.4/site-packages/svn.pth
Clearsilver
I used version clearsilver-0.10.3.
./configure make make install
Trac
At this point you should be able to install trac like normal (I used 0.10.3)
python setup.py install
Reset your dynamic linker cache
Finally, before you run trac-admin, rebuild the linker cache so that it picks up the new shared libraries you have installed.
ldconfig
Good luck!
If you are trying to install on a similar setup and are having trouble, I might be able to help (c1a2mior@… but without the numbers).
-- David Sankel
neo_cgi from clearsilver
If an error occurred saying there's no module named neo_cgi, just copy the python/neo_cgi.so file from the directory where you built clearsilver.
Found this here: http://lists.edgewall.com/archive/trac/2005-December/006092.html


