[Zope] Postgres with Zope.

Dieter Maurer dieter at handshake.de
Sun Oct 26 04:24:10 EST 2003


Rajeev Sharma wrote at 2003-10-23 13:09 :
 > ...
 > Now i compiled Zope 2.6.2 source with python 2.1.
 > And tryied to install psycopg 1.1.9 with following command.
 > 
 > I am trying to install it since two days and getting in the mess..
 > Is postgres support is not easily avalable with zope..?
 > 
 > [root at thickserver psycopg-1.1.9]# ./configure
 > --with-postgres-includes=/usr/local/pgsql/include/
 > --with-mxdatetime-includes=/usr/local/zope/egenix-mx-base-2.0.5/mx/DateTime/mxDateTime/
 > --with-postgres-libraries=/usr/local/pgsql/lib/
 > --with-python=/usr/local/bin/python2.1 --with-zope=/usr/local/zope/Zope-2.6.2-src
 > 
 > and added ZpsycopgDA in the Zope Products directory and restarted zope ..got the
 > following error..
 > 
 > Traceback (innermost last):
 >   File /usr/local/zope/Zope-2.6.2-src/z2.py, line 585, in ?
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/Zope/__init__.py, line 46, in
 > startup
 >     (Object: startup)
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/Zope/App/startup.py, line 45,
 > in startup
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/OFS/Application.py, line 500,
 > in import_products
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/OFS/Application.py, line 522,
 > in import_product
 >   File
 > /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZPsycopgDA/__init__.py, line
 > 92, in ?
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZPsycopgDA/DA.py, line
 > 94, in ?
 >   File /usr/local/zope/Zope-2.6.2-src/lib/python/Products/ZPsycopgDA/db.py, line
 > 99, in ?
 > ImportError: libpq.so.3: cannot open shared object file: No such file or directory
 > 

It does not find the PostgreSQL client library "libpq.so.3".

You must install the "PostgreSQL" client library package
and ensure that the dynamic linker can find it (--> "LD_LIBRARY_PATH").

-- 
Dieter



More information about the Zope mailing list