Received: from pascal.mbl.is (pascal.mbl.is [193.4.96.33]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBC9asm30907 for ; Wed, 12 Dec 2001 04:36:55 -0500 (EST) (envelope-from acim@mbl.is) Received: from acim.mbl.is (3-244.mbl.is [192.168.3.244]) by pascal.mbl.is (8.11.6/linuxconf) with ESMTP id fBC9anB09097; Wed, 12 Dec 2001 09:36:50 GMT Subject: Re: Big problem about libpq.so.2.1, ldconfig and ldd From: Boban Acimovic To: Richard NAGY Cc: pgsql-admin@postgresql.org In-Reply-To: <3C171C77.ED75AC5B@presenceweb.com> References: <3C171C77.ED75AC5B@presenceweb.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.0 (Preview Release) Date: 12 Dec 2001 09:36:49 +0000 Message-Id: <1008149810.26899.0.camel@acim.mbl.is> Mime-Version: 1.0 X-Archive-Number: 200112/86 X-Sequence-Number: 2809 > On a machine with 7.0.2, we have this : > > ldconfig -p |grep libpq.so > libpq.so.2.1 (libc6) => /usr/local/pgsql/lib/libpq.so.2.1 > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so > > On an other machine with 7.1.3, we have this : > > ldconfig -p |grep libpq.so > libpq.so.2 (libc6) => /usr/local/pgsql/lib/libpq.so.2 > libpq.so (libc6) => /usr/local/pgsql/lib/libpq.so It should be like this: lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so -> libpq.so.2.1 lrwxrwxrwx 1 root other 12 des 10 14:58 libpq.so.2 -> libpq.so.2.1 -rwxr-xr-x 1 root other 78114 des 10 14:58 libpq.so.2.1 Hmm, why don't you go to /usr/local/pgsql/lib on your second machine and do "ls -la libpq*". Then figure out what is the real file and what is the symbolic link. Rename the real file to libpq.so.2.1 and then make two symbolic links libpq.so and libpq.so.2 to point to libpq.so.2.1. This is something wrong with your installation on the second machine, but this should resolve the problem. This basically has nothing to do with Postgres (although it is about Postgres library), but this is plain Unix problem with loading libraries. Regards, Boban Acimovic www.mbl.is