Re: Trouble connecting locally after 9.2.4 upgrade

From: "Campbell, Lance" <lance(at)illinois(dot)edu>
To: "Campbell, Lance" <lance(at)illinois(dot)edu>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Trouble connecting locally after 9.2.4 upgrade
Date: 2013-04-04 20:59:23
Message-ID: B75CD08C73BD3543B97E4EF3964B7D701F215DF8@CITESMBX1.ad.uillinois.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I figured it all out. When I ran the configuration script I told it to put the code in pgsql-9.2.4. Then after the code installed I moved it to pgsql-9.2. Then the install could not find the proper libraries. So it used the system one. I reinstalled but this time with the target directory of pgsql-9.2. It worked fine. I don't need the environment variable LD_LIBRARY_PATH now.

Thanks,

Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Campbell, Lance
Sent: Thursday, April 04, 2013 3:08 PM
To: Tom Lane
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Trouble connecting locally after 9.2.4 upgrade

I just found an old posting from 2010-08-15. I added the below. If fixed the issue. But I have never had to add this before. I don't manage the server I run the database on. It might be the case that there was an upgrade of Red Hat since the last time I installed that is causing this to be an issue.

setenv LD_LIBRARY_PATH

Thanks,

Lance Campbell
Software Architect
Web Services at Public Affairs
217-333-0382

-----Original Message-----
From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Thursday, April 04, 2013 2:56 PM
To: Campbell, Lance
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Trouble connecting locally after 9.2.4 upgrade

"Campbell, Lance" <lance(at)illinois(dot)edu> writes:
> Error:
> psql: symbol lookup error: psql: undefined symbol: PQconnectdbParams

This looks like psql is picking up a rather ancient version of libpq.so.
Applying ldd or local equivalent to the psql executable would help you figure out where it's getting that library from. Bottom line though is probably that you forgot to worry about rpath or something similar while configuring the new build.

regards, tom lane

--
Sent via pgsql-admin mailing list (pgsql-admin(at)postgresql(dot)org) To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2013-04-04 21:20:07 Re: Trouble connecting locally after 9.2.4 upgrade
Previous Message Pascal Polleunus 2013-04-04 20:18:26 Re: Server 9.1 doesn't restart and no output/log - data files seem corrupted