From: gerhard q. <gq...@sk...> - 2004-02-23 06:54:51
|
Hi, look in your postgresql library (typically /usr/local/lib/psql): #ls libpq* libpq.a libpq.so libpq.so.3 libpq.so.3.0 libpq.so.3.1 Gerhard ------------- Andrzej Dabrowski wrote: > Hi! > > I think that in file README.txt in chapter INSTALLATION it should be one > point more. I installed pyPgSQL without any problems but when I tried > run example script "basic.py"... > > [postgres@localhost python]$ python basic.py > Traceback (most recent call last): > File "./basic.py", line 3, in ? > from pyPgSQL import PgSQL > File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 391, in ? > from libpq import * > File "/usr/lib/python2.2/site-packages/pyPgSQL/libpq/__init__.py", > line 23, in ? > from libpq import * > ImportError: libpq.so.3: cannot open shared object file: No such file or > directory > > It is a problem and some people had the same one. It is an answer for > this problem. In file /etc/ld.so.conf one should write > "/usr/local/pgsql/lib/" and run ldconfig. > > I think that it should be in README file. > > Andrew > > PS I'm Polish, so my English isn't very good :P > -- ------------------------------------------------------ skequell ------ Gerhard Quell Software & Knowledge Engineering Schützenweg 3 eMail: gq...@sk... Fon: 0731-26400651 89275 Elchingen web : http://www.skequell.de Fax: 0731-26400652 --------------- pgp: 473EC53C - http://www.keyserver.net/en--------- |