Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4t1t-00070u-3U for pgsql-general@arkaria.postgresql.org; Tue, 04 Jan 2022 23:15:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n4t1r-00019N-KZ for pgsql-general@arkaria.postgresql.org; Tue, 04 Jan 2022 23:15:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4t1r-000198-AW for pgsql-general@lists.postgresql.org; Tue, 04 Jan 2022 23:15:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4t1k-0002MI-VU for pgsql-general@postgresql.org; Tue, 04 Jan 2022 23:15:42 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 204NFX3i4155516; Tue, 4 Jan 2022 18:15:34 -0500 From: Tom Lane To: stercor@gmail.com cc: Adrian Klaver , pgsql-general Subject: Re: Tab-completion error...? In-reply-to: References: <4042326.1641321158@sss.pgh.pa.us> Comments: In-reply-to "Theodore M Rolle, Jr." message dated "Tue, 04 Jan 2022 18:04:57 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4155514.1641338133.1@sss.pgh.pa.us> Date: Tue, 04 Jan 2022 18:15:33 -0500 Message-ID: <4155515.1641338133@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Theodore M Rolle, Jr." writes: > ldd /usr/local/pgsql/bin/psql > linux-vdso.so.1 (0x0000ffffa2bef000) > libpq.so.5 => /USR/local/lib/libpq.so.5 (0x0000ffffa2aaf000) > libreadline.so.8 => /usr/lib/libreadline.so.8 (0x0000ffffa2a1d000) > libpthread.so.0 => /usr/lib/libpthread.so.0 (0x0000ffffa29ed000) > libm.so.6 => /usr/lib/libm.so.6 (0x0000ffffa2941000) > libc.so.6 => /usr/lib/libc.so.6 (0x0000ffffa27cd000) > /lib/ld-linux-aarch64.so.1 => /usr/lib/ld-linux-aarch64.so.1 > (0x0000ffffa2bbe000) > libncursesw.so.6 => /usr/lib/libncursesw.so.6 (0x0000ffffa2748000 Hm, is /USR actually in caps, or did you change that for emphasis? > I'm at a loss as to where the /USR came from. > It's not in config.log (compile time) > nor in the psql executable (run time). I think it came out of /etc/ld.so.conf. BTW, by default PG would link psql using an rpath switch pointing at /usr/local/pgsql/lib, which I assume is where your manual build put its libpq.so. That's evidently not having success getting that libpq.so to be used. Did you tell configure to --disable-rpath? Or maybe move the installation after building it? regards, tom lane