Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a5caX-0003Km-8l for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Dec 2015 16:55:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a5caW-0006IQ-O8 for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Dec 2015 16:55:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a5caW-0006IF-8I for pgsql-bugs@postgresql.org; Sun, 06 Dec 2015 16:55:04 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a5caO-0000QJ-Ng for pgsql-bugs@postgresql.org; Sun, 06 Dec 2015 16:55:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tB6GsqWd011675; Sun, 6 Dec 2015 11:54:52 -0500 From: Tom Lane To: pravincar@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13801: Error while starting psql In-reply-to: <20151206161954.2629.82282@wrigleys.postgresql.org> References: <20151206161954.2629.82282@wrigleys.postgresql.org> Comments: In-reply-to pravincar@gmail.com message dated "Sun, 06 Dec 2015 16:19:54 +0000" Date: Sun, 06 Dec 2015 11:54:52 -0500 Message-ID: <11674.1449420892@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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