[Zope] Installation trouble on Solaris 2.6

Michel Pelletier michel@digicool.com
Fri, 03 Mar 2000 14:25:19 -0800


Zach Frey wrote:
> 
> Hi all,
> 
> I'm trying to install Zope from source on a Solaris 2.6 system,
> and I'm running into problems.
> 
> When I try "./start", I get the following error:
> 
> $ ./start
> $ 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

It looks like your dynamic linker cannot find your python libraries. 
There is an environment variable that you must set so that the linker
can find any libraries needed by shared library modules like
ExtensionClass.so.  I believe the env variable beings with LD_.  Do an
'env' (in bash at least) and look for something like that.  I never
remeber it cuz in Linux you just edit a file.
 
> I am new to Python, so it's less than obvious to me what is going
> on here.  It looks like the ExtensionClass module is failing to
> import, but I have no idea how to go about fixing this.
> 
> [Yes, I know about the precompiled Solaris 2.6 binary.  However,
> I eventually will need to get this running on a Solaris 2.5.1 system.
> Also, as far as I can tell, the binary release is not set up for
> Apache integration, which is something I also need to do.]

The binary will work fine with PCGI (Apache integration).  Whether it
runs on 2.5.x I don't know.

-Michel