"That which is overdesigned, too highly specific, anticipates outcome; the anticipation of outcome guarantees, if not failure, the absence of grace."
-- William Gibson, All Tomorrow's Parties
Installing trac on OpenBSD.

I've become a big proponent of TRAC in the last month or so. It's a very simple, very efficient project management system and svn client. It's good stuff. Many projects (including Catalyst) have adopted it.

I got bored this morning and decided to install a personal copy on mnet, which required installing mod_python and setting up a bunch of other junk for it.

So here are some more "Installing stuff on OpenBSD" docs:

Installing mod_python on OpenBSD
Installing TRAC on OpenBSD

If you find any issues with them, drop me a line.

July 16, 2005 9:00 AM

Hey, I'm trying to install trac on OpenBSD 3.7 (i386) since weeks, your howto helped me a lot but finally there still is some problem:

Up to the actual run of trac-admin everything seems to be fine but it's not: in /usr/local/lib/python2.3/site-packages/libsvn/ there're no .so-files so I compiled them all manually following your howto but now I get:

/usr/local/bin/python:/usr/local/lib/python2.3/site-packages/libsvn/_repos.so: undefined symbol 'svn_repos_open'
lazy binding failed!
Segmentation fault (core dumped)

I don't know what to do 'cause I can't get around this error, regardeless which configure-options I use for svn, swig and stuff.

Any hints? Thanks a lot!

Posted by: del at August 3, 2005 11:03 AM

I'll re-write my docs, but essentially:

I'm using all packages/clean ports for 3.7.

The biggest issue is that to get mod_python compiled you need a non-threaded Python. After that, you can install the Python 2.3.5 port and be good.

It looks to me like your subversion python bindings are linked to libsvn properly or something like that... I would suggest removing all your source-compiled stuff and using the 3.7 packages.

py-subversion-1.1.3p0 python interface to subversion
subversion-1.1.3p0 subversion revision control system
clearsilver-0.9.14-python fast, powerful, and language neutral template system
python-2.3.5 interpreted object-oriented programming language
py-docutils-0.3.7 tools for converting plaintext documentation into other formats
py-sqlite-1.0 SQLite adapter for Python

Some of those are from the third-party package maintainer I link to in the install doc.

I *had* it working via source on a 3.6 install, but that's because there's no 3.6 subversion package. It was a major pain in the ass, and is really really pointless if you just upgrade to 3.7.

Posted by: bda at August 5, 2005 1:47 PM


I've tried out you're mod_python instruction i build python from source 2.4.2 on OpenBSD 3.9BETA it built just fine .. so does mod_python considering the Python i have has --without-threads but as soon as i insert the Module mod_python.so on httpd.conf and restarted apache it segfaults on me

without mod_python.so on httpd.conf
apacheclt configtest
Syntax OK

with mod_python.so on httpd.conf
apachectl configtest
Syntax OK
Segmentation fault (core dumped)

any comment would be mostly appreciated.

Posted by: ed at February 26, 2006 7:49 AM

Apache segfaulting with mod_python typically means it's been compiled with a threaded python. There was another error it spewed but I can't recall it at the moment.

I've actually gotten lazy and have just started copying my mod_python shared library around the the machines I need it on. :-)


I'll probably be install a new trac box for my side job sometime this week... It'll be another 3.8 box, though. I don't tend to run -CURRENT.

Posted by: bda at February 26, 2006 9:43 PM
Post a comment

Remember personal info?