Re: libpq.so.1: cannot open shared object file

From: Lee Harr <missive(at)frontiernet(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: libpq.so.1: cannot open shared object file
Date: 2002-08-22 23:10:42
Message-ID: ak3r1h$2avn$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

In article <cM5ulyLcQWZ9Ewmn(at)worsdall(dot)demon(dot)co(dot)uk>, Mark Worsdall wrote:
> Hi,
>
> postmaster is running ok.
>
> When I run psql I get the following error:
>
> psql
> psql: error in loading shared libraries
> libpq.so.1: cannot open shared object file: No such file or directory
>
> [root(at)jilldando pgsql]# ls lib
> libecpg.a libpgeasy.a libpq++.a libpq.a
> libpsqlodbc.a plperl.so
> libecpg.so libpgeasy.so libpq++.so libpq.so
> libpsqlodbc.so plpgsql.so
> libecpg.so.3 libpgeasy.so.2 libpq++.so.4 libpq.so.2
> libpsqlodbc.so.0
> libecpg.so.3.3.0 libpgeasy.so.2.2 libpq++.so.4.0 libpq.so.2.2
> libpsqlodbc.so.0.27
>
> Any ideas, I am lost.
>
>

You might try linking libpq.so.1 --> libpq.so
with something along the lines of:

ln -s libpq.so libpq.so.1

You also need to make sure that the directory
with those files is on your library path.
On my FreeBSD machine I use ldconfig to set
that up, and the database startup scripts
that came with the port do it automatically
when the system boots.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Aaron 2002-08-23 00:52:53 Time slowly goes out of sync Cygwin+windows+psotgres
Previous Message Mark Worsdall 2002-08-22 22:22:20 libpq.so.1: cannot open shared object file