Michel Pelletier wrote:
I'm not sure if you considered this, but note that LD_LIBRARY_PATH needs to point to *Python's* libraries, not Zopes. It's not python that can't find ExtensionClass.so, it's ExtensionClass.so that can't find the standard Python library module.
Your message sort of implies that you were ensuring that ExtensionClass.so was in the library path, but the problem (I think) is that the Python libs are not in your path.
I could be wrong and this could be an entirely unrelated issue. Can you run python normally? Import stuff like cPickle?
No, you're not wrong; I did have this problem. Adding /usr/local/lib/python1.5/lib-dynload to LD_LIBRARY_PATH makes everything behave much more sanely. :^) I wasn't able to import standard python modules (like socket) before, now I can. And yes, this was a problem with my basic python installation, but since I'm only using Python to run Zope, I hadn't noticed. Unfortunately, this doesn't make things better. :^( When I run the 'start' script, I still get the same error: $ Traceback (innermost last): File "/opt2/local/zope/Zope-2.1.4-src/z2.py", line 436, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/opt2/local/zope/Zope-2.1.4-src/lib/python/Zope/__init__.py", line 94, in ? import ZODB, ZODB.ZApplication, imp File "/opt2/local/zope/Zope-2.1.4-src/lib/python/ZODB/__init__.py", line 85, in ? import sys, ExtensionClass, TimeStamp, cPersistence, Persistence ImportError: ld.so.1: /usr/local/bin/python: fatal: relocation error: file /opt2/local/zope/Zope-2.1.4-src/lib/python/ExtensionClass.so: symbol PyImport_ImportModule: referenced symbol not found Here's the part I don't understand. I started stepping through z2.py (isn't open source wonderful?!), and trying the import commands one by one in a normal Python interpreter. They all succeed, including the one on line 436 which resolves to "import Zope". Yet it doesn't work from within the 'start' script. Oh well. I just verified that I can set up Apache+FastCGI+Zope on my Solaris2.6 box just fine with the binary distribution. Am I correct that I should be able to set up FastCGI using a TCP socket that isn't localhost, and therefore be able to run Apache on our 2.5.1 box and Zope on a 2.6 box? This would let me get started using Zope while I figure out how to install from source at a little more leisure. Thanks for all your help, Zach Frey