[Zope] Zope 2.3.1 install from source

Petr Knapek knapek@knapek.pvt.net
27 Apr 2001 06:48:06 +0200


>>>>> On Tue, 24 Apr 2001 18:09:50 +0200, Tino Wildenhain <tino@wildenh=
ain.de> said:

Hi Tino,
I have read your document which you noted but still I can't start Zope
2.3.1 (from source) together with python 1.5.2 built also from
source. Both apps (Zope and Python) are located in my home folder at
FreeBSD box (I am not root).  When I compile Zope with my Python
everything is OK (Zope installation successfull) but it is not possible
to start Zope.  When start script is invoked this message appears:

bash-2.04$ ./start
------
2001-04-26T07:55:38 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File /usr/home/knapek/apps/Zope-2.3.1-src/z2.py, line 566, in ?
  File <string>, line 1, in ?
  File /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/Zope/__init__.py=
, line 94, in ?
  File /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/ZODB/__init__.py=
, line 85, in ?
ImportError: /usr/home/knapek/apps/Zope-2.3.1-src/lib/python/ExtensionC=
lass.so: Undefined symbol "PyMethod_Type"

I would like to know what am I doing bad?  Can anybody help me?

My steps in building of Python:
1. untar py152.tgz in "MYHOME/apps/" folder ("MYHOEM/apps/Python-1.5.2/"
is created)
2. modification of Setup file in MYHOME/apps/Python-1.5.2/Modules direc=
tory
(addition of some commented modules)
3. call configure --with-thread --prefix ~/apps/python1.5.2 at top of u=
ntarred python
4. call make also at top of untarred python
5. call make install at top of untarred python

After this python is installed in "MYHOME/apps/python1.5.2" directory
and I can start it with alias mypython.



Building of Zope 2.3.1 from sources step by step:
1. untar Zope2.3.1-src.tgz in "MYHOME/apps/"
("MYHOME/apps/Zope-2.3.1-src/" is created)
2. call mypython wo_pcgi.py from top of untarred Zope

After this building of Zope is succesfull but when I try to call ./start
from top of installed Zope ("MYHOME/apps/Zope-2.3.1-src/") the above
noted error message is returned.  Does anybody know where the mistake in
building of both python and Zope is?=20



    TW> Hi Petr, it is sufficient if you built your python with threads.
    TW> May be http://www.zope.org/Members/tino/ZopeNetBSD is also
    TW> helpful for you. You may probably skip the part involving
    TW> unproven-pthreads. May be not.

    TW> HTH Tino Wildenhain

    TW> --On Dienstag, 24. April 2001 13:22 +0200 Petr Knapek
    TW> <knapek@knapek.pvt.net> wrote:

    >> Hello Zopists, I would like to know how to correct build and
    >> install Zope 2.3.1 from sources on FreeBSD box.  On that box
    >> there are few pythons and I need to build Zope with my own build
    >> python which is in my home directory.  I am not sure if to run
    >> wo_pcgi.py with my python is sufficient.
    >>=20
    >> Another question is if python for Zope must be compiled with
    >> dynamic loading of modules.
    >>=20
    >> Thanks for help, if you know any documentation, please give me
    >> URL.
    >>=20

Petr

--=20
Petr Kn=E1pek
Network Development
NEXTRA Czech Republic s.r.o. http://www.nextra.cz/
V Celnici 10 / CZ - 117 21 Praha 1 / Czech Republic
Tel: +420/2/96 355 111 / Mobile: +420/604-202 611
E-Mail: petr.knapek@nextra.com

Contact address:
Hlinky 114 / CZ - 603 00 Brno / Czech Republic
Tel: +420/5/43 554 150
see Disclaimer http://www.nextra.cz/disclaimer/