Zope installation with NetBSD
Created by .
Last modified on 2003/08/05.
NetBSD is a nice clean free BSD-derivat. (see http://www.netbsd.org/ )
Since it has no default threading system, its a bit hard to get Zope running on it. Zope requires python with thread support compiled in.
Ok, you'll need the following:
Python as source (http://www.python.org)
for current Zope, 1.5.2 is recommended. However, I was also sucessfully with Python2.1. For now you get many warnings with 2.1 and possibly other problems too.
Zope as source (http://www.zope.org obviously)
If you are running NetBSD you should know tar, make and such :)
You should have the Packages system installed. But try to resist to install zope and python from packages.
First get and build the thread package:
cd /usr/pkgsrc/devel/unproven-pthreads
make install
(this must be done as root)
after install, do:
setenv CC /usr/pkg/pthreads/bin/pgcc
(or whatever your shell requires to set variables)
now unpack the Python-Source somewhere, go in that directory and do:
configure --with-thread
(configure has more options, if you want to have a separate python for zope, you should use
--with-prefix= and --with-exec-prefix= - use the path here to do the zope-install then.)
then make, make test and make install.
(make test could be suppressed)
Now unpack Zope. cd to its directory.
change inst/do.py from:
def do(command, picky=1, quiet=0):
if not quiet:
print command
i=os.system(command)
if i and picky: raise SystemError, i
print i
to:
def do(command, picky=1, quiet=0):
if not quiet:
print command
i=os.system(command)
if (i>0) and picky: raise SystemError, i
print i
(I've found that NetBSD returns -1 on success sometimes)
(If that fails, print all commands to a file and execute that file)
then use (path/to/your/python/binary)python wo_pcgi.py
as described in the INSTALL document.
The rest of the setup is as usual.
|