For those of you wishing to run Zope on OpenBSD 2.8, here is a solution. The
reason it doesn't work in the first place is a thread bug in the OpenBSD 2.8
release version. The solution is to use the libc_r from OpenBSD 2.7 for the
Zope instance.

Thanks to Jason Ish for the howto, I thought I would rewrite it to be more
generic and post it to the lists.

So, here we go:

Python on OpenBSD 2.8 uses /usr/lib/libc_r.so.3.1.
libc_r.so.3.1 is from 2.8, libc_r.so.3.0 is from 2.7 and will work.

So what we do is to copy the old libc file (if you don't have it, mail me
and I'll send it to you) into a directory in the Zope install dir, and add
that to the path. Then we rename the old file so the system thinks it is the
curent version.

In this example, I assume your Zope install is in /usr/local/zope.

First, we copy the old library into our Zope dir, and rename it:

cp /usr/lib/libc_r.so.3.0 /usr/local/zope/libc_r.so.3.1

Then you should add something like this to the top of your "start" script:

export LD_LIBRARY_PATH=/usr/local/zope

Start Zope, and you will find that it works fine now. Zope also works fine
in the CURRENT tree of OpenBSD, so presumably it will work out-of-the-box on
OpenBSD 2.9. This is the safest way of getting it to work at the moment.

Happy OpenBSD'ing :)

Alexander Limi.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to