pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pravincar@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13801: Error while starting psql
Date: Sun, 06 Dec 2015 11:54:52 -0500
Message-ID: <11674.1449420892@sss.pgh.pa.us> (raw)
In-Reply-To: <20151206161954.2629.82282@wrigleys.postgresql.org>
References: <20151206161954.2629.82282@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

pravincar@gmail.com writes:
> I have installed 9.5beta2 on my machine from source with the following
> configure statement. 
> ./configure --prefix=/usr/local/pgsql95b/ --with-openssl
> --with-includes=/usr/local/Cellar/openssl/1.0.2d_1/include/

> The server has started successfully and I can connect to it with psql
> (version 9.4) but on running psql (version 9.5) I get the following error.

> psql (9.5beta2)
> dyld: lazy symbol binding failed: Symbol not found: _PQsslInUse
>   Referenced from: /usr/local/pgsql95b/bin/psql
>   Expected in: /usr/lib/libpq.5.dylib

What you need to figure out is why the linker is selecting the (ancient)
/usr/lib copy of libpq.dylib, rather than the 9.5 version you presumably
installed in /usr/local/pgsql95b/lib/.  Perhaps you changed your mind
about the installation prefix somewhere along the line?  The
"-install_name" switch given while linking libpq.dylib during the build
process would determine where psql tries to find libpq at execution ---
but I think it will fall back to looking in /usr/lib if it doesn't find
it in the expected directory, and that looks to be what's happening here.

Applying "otool -L" to your psql executable should provide a hint where
it's going to look for libpq.

			regards, tom lane


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



view thread (3+ messages)  latest in thread

Message-ID: <11674.1449420892@sss.pgh.pa.us>
Permalink:  ../11674.1449420892@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11674.1449420892@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pravincar@gmail.com
  Subject: Re: BUG #13801: Error while starting psql
  In-Reply-To: <11674.1449420892@sss.pgh.pa.us>
  References: <20151206161954.2629.82282@wrigleys.postgresql.org> <11674.1449420892@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox