Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0hym-00055B-Pk for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Dec 2014 02:35:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y0hym-0007Kx-4n for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Dec 2014 02:35:16 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y0hyk-0007JX-2K for pgsql-bugs@postgresql.org; Tue, 16 Dec 2014 02:35:14 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0hya-0006zI-Tg for pgsql-bugs@postgresql.org; Tue, 16 Dec 2014 02:35:12 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id E20CCDD0E7E for ; Mon, 15 Dec 2014 18:35:03 -0800 (PST) Date: Mon, 15 Dec 2014 19:35:03 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1418697303306-5830826.post@n5.nabble.com> In-Reply-To: <20141215151555.2693.88440@wrigleys.postgresql.org> References: <20141215151555.2693.88440@wrigleys.postgresql.org> Subject: Re: BUG #12241: uninitialized value $lib_path MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 aleks.dark wrote > The following bug has been logged on the website: > > Bug reference: 12241 > Logged by: Aleks > Email address: > aleks.dark@ > PostgreSQL version: 9.3.5 > Operating system: Debian > Description: > > Similar error to case in 2011, but this time no upgrade available. Any > hints > what is going wrong? > > > In command line: > $ psql --version > > Use of uninitialized value $lib_path in concatenation (.) or string at > /usr/bin/psql line 132. > psql (PostgreSQL) 9.3.5 > > libedit.so.2 => /usr/lib64/libedit.so.2 (0x00007f95ad709000) Assuming this psql wrapper is the same as can be obtained via: https://wiki.postgresql.org/wiki/Apt The specific problem is two-fold: 1) Your version does not have libreadline linked in 2) The location of libedit is under "/usr/lib64" instead of "/lib" which is where the wrapper script checks for it. A little out of my experience here but: The wrapper script assumes it will find libedit in the "/lib" subdirectory and uses the portion of the path between "/lib" and "libedit" to go and try to find a usable sibling readline.so. Since there is none no valid value of "$lib_path" is captured from the regular expression and no useful default is provided in its absence. Since libedit is indeed linked and the failure to load readline is non-fatal you simply get the warning about the lib_path variable not being set but the call to the underlying psql command succeeds. As Tom said this is a packaging issue for "Debian" - though I suspect that you have something unusual going on relative to what a typically installation would look like. The link above will launch you into the proper area for finding information and support for Debian-based distributions. David J. -- View this message in context: http://postgresql.nabble.com/BUG-12241-uninitialized-value-lib-path-tp5830809p5830826.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs