[Psycopg] ImportError: libpq.so.3: cannot open shared object file: No such file or directory

Karl Putland karl@putland.linux-site.net
01 Mar 2003 22:14:25 -0700


On Sat, 2003-03-01 at 22:01, John Wilger wrote:
> Hello,
>  
> I have just installed PostgreSQL 7.3.2 from source (including the 'make
> install-all-headers' command) and I am running Python 2.2.1 from the
> RPMs that come with Red Hat 8.0 (all package updates applied).
>  
> Psycopg configured, compiled, and installed without any errors, but I
> get an error when I try to import the module within python (testing
> using the interactive python shell):
>  
> >>> import psycopg
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: libpq.so.3: cannot open shared object file: No such file or
> directory
> >>>
>  
> The file "libpq.so.3" does exist in the directory
> "/usr/local/pgsql/lib", and that is the directory I specified with the

in the file
/etc/ld.so.conf

add a line /usr/local/pgsql/lib

run ldconfig

try again.

>  
-- 
Karl Putland <karl@putland.linux-site.net>