X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 43D41D1C512; Fri, 1 Aug 2003 13:31:34 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 37427-10; Fri, 1 Aug 2003 10:30:30 -0300 (ADT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by svr1.postgresql.org (Postfix) with ESMTP id D02C5D1C510; Fri, 1 Aug 2003 10:31:31 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 19ia0M-0000Au-0W; Fri, 01 Aug 2003 14:31:34 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 2AD6016D4F; Fri, 1 Aug 2003 14:31:33 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 927E316365; Fri, 1 Aug 2003 14:31:32 +0100 (BST) From: Richard Huxton To: Elielson Fontanezi , pgsql-general , pgsql-admin Subject: Re: [GENERAL] error while loading shared libraries: libpq.so.3 Date: Fri, 1 Aug 2003 14:31:31 +0100 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308011431.31423.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/27 X-Sequence-Number: 9750 On Friday 01 August 2003 12:54, Elielson Fontanezi wrote: > Hi all! > > I would like some suggestion on how to solve that: > > postgres$ createdb postgres > /usr/local/postgresql-7.3.4/bin/psql: error while loading shared libraries: > libpq.so.3: cannot open shared object file: No such file or directory > createdb: database creation failed > postgres$ > postgres$ uname -a > Linux PgServer.prodam 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586 i586 > i386 GNU/Linux You probably need to add your library folder to /etc/ld.so.conf and then run ldconfig. Alternatively, you could symlink from /usr/local/lib to the library and do the same for the binaries - that would mean you could skip the leading path when running psql. You can find the correct directory with: find /usr/local -name 'libpg.so.3' There should be something on this in the installation instructions. In any case, googling for "ldconfig" should find you some help. -- Richard Huxton Archonet Ltd