Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1A7F6475CBD for ; Thu, 22 Aug 2002 19:10:44 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 64120475BED for ; Thu, 22 Aug 2002 19:10:43 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 8E6E63819D3; Thu, 22 Aug 2002 19:10:42 -0400 (EDT) From: Lee Harr X-Newsgroups: comp.databases.postgresql.admin Subject: Re: libpq.so.1: cannot open shared object file Date: Thu, 22 Aug 2002 23:10:42 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 37 Message-ID: References: Reply-To: missive@hotmail.com X-Complaints-To: news@hub.org User-Agent: slrn/0.9.7.3 (FreeBSD) To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/337 X-Sequence-Number: 5451 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.