Re: Installation in README.

gerhard quell <gquell-N1YKUU++/[email protected]> Mon, 23 Feb 2004 07:48:16 +0100
Newsgroups gmane.comp.python.db.pypgsql.user
Organization skequell
Message-ID <[email protected]>
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"...
> 
> [[email protected] 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:     gquell-N1YKUU++/[email protected]  Fon: 0731-26400651
  89275 Elchingen    web  : http://www.skequell.de  Fax: 0731-26400652
--------------- pgp: 473EC53C  -  http://www.keyserver.net/en---------


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click