Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4EFD8475469 for ; Sat, 24 Aug 2002 12:16:08 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id E1EDC475153 for ; Sat, 24 Aug 2002 12:16:07 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 7C5FA3818DA; Sat, 24 Aug 2002 12:16:06 -0400 (EDT) From: Mark Worsdall X-Newsgroups: comp.databases.postgresql.admin Subject: Re: libpq.so.1: cannot open shared object file Date: Fri, 23 Aug 2002 23:43:20 +0100 Organization: Just Neck it Now:) Message-ID: References: X-NNTP-Posting-Host: worsdall.demon.co.uk:158.152.173.142 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.01-U () Lines: 53 To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/343 X-Sequence-Number: 5457 In message , Lee Harr writes >In article , 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@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. > Turns out not all of the default old v6 rehat 5.1 by default installed postgresql was still there, so I did a copy from the postgresql bin folder to the /usr/bin/ folder overwriting any exisiting versions. psql now works, I do have other problems but that is another fred. M. -- Mark Worsdall https://www.paypal.com/refer/pal=LS79YHQ9VUGLJ