pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13801: Error while starting psql
3+ messages / 3 participants
[nested] [flat]
* BUG #13801: Error while starting psql
@ 2015-12-06 16:19 pravincar@gmail.com
2015-12-06 16:54 ` Re: BUG #13801: Error while starting psql Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: pravincar@gmail.com @ 2015-12-06 16:19 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13801
Logged by: Pravin Carvalho
Email address: pravincar@gmail.com
PostgreSQL version: 9.5beta1
Operating system: OS X El Capitan
Description:
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
dyld: Symbol not found: _PQsslInUse
Referenced from: /usr/local/pgsql95b/bin/psql
Expected in: /usr/lib/libpq.5.dylib
Trace/BPT trap: 5
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13801: Error while starting psql
2015-12-06 16:19 BUG #13801: Error while starting psql pravincar@gmail.com
@ 2015-12-06 16:54 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-12-06 18:26 ` Re: BUG #13801: Error while starting psql Pravin Carvalho <pravincar@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2015-12-06 16:54 UTC (permalink / raw)
To: pravincar@gmail.com; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #13801: Error while starting psql
2015-12-06 16:19 BUG #13801: Error while starting psql pravincar@gmail.com
2015-12-06 16:54 ` Re: BUG #13801: Error while starting psql Tom Lane <tgl@sss.pgh.pa.us>
@ 2015-12-06 18:26 ` Pravin Carvalho <pravincar@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Pravin Carvalho @ 2015-12-06 18:26 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
Thanks Tom! You were absolutely right. It was picking the older copy of
libpq.dylib. I just started with the fresh files and it works now.
On Sun, Dec 6, 2015 at 10:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2015-12-06 18:26 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-06 16:19 BUG #13801: Error while starting psql pravincar@gmail.com
2015-12-06 16:54 ` Tom Lane <tgl@sss.pgh.pa.us>
2015-12-06 18:26 ` Pravin Carvalho <pravincar@gmail.com>
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