pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #12241: uninitialized value $lib_path
3+ messages / 3 participants
[nested] [flat]
* BUG #12241: uninitialized value $lib_path
@ 2014-12-15 15:15 aleks.dark@inbox.ru
2014-12-16 01:19 ` Re: BUG #12241: uninitialized value $lib_path Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 02:35 ` Re: BUG #12241: uninitialized value $lib_path David G Johnston <david.g.johnston@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: aleks.dark@inbox.ru @ 2014-12-15 15:15 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 12241
Logged by: Aleks
Email address: aleks.dark@inbox.ru
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
------
$ ldd /usr/lib/postgresql/9.3/bin/psql
linux-vdso.so.1 => (0x00007ffff1559000)
libpq.so.5 => /usr/lib64/libpq.so.5 (0x00007f95adb92000)
libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007f95ad932000)
libedit.so.2 => /usr/lib64/libedit.so.2 (0x00007f95ad709000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f95ad37d000)
libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f95acf85000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x00007f95accb0000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2
(0x00007f95acaac000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x00007f95ac86d000)
libldap_r-2.4.so.2 => /usr/lib64/libldap_r-2.4.so.2 (0x00007f95ac61b000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f95ac3ff000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f95ac1fb000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f95abfe3000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f95abdd6000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f95abbad000)
/lib64/ld-linux-x86-64.so.2 (0x00007f95ae097000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0x00007f95ab983000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x00007f95ab77a000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1
(0x00007f95ab576000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2
(0x00007f95ab35f000)
liblber-2.4.so.2 => /usr/lib64/liblber-2.4.so.2 (0x00007f95ab150000)
libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00007f95aaf35000)
libgnutls.so.26 => /usr/lib64/libgnutls.so.26 (0x00007f95aac74000)
libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11
(0x00007f95aa9f5000)
libtasn1.so.3 => /usr/lib64/libtasn1.so.3 (0x00007f95aa7e3000)
libp11-kit.so.0 => /usr/lib64/libp11-kit.so.0 (0x00007f95aa5d1000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0
(0x00007f95aa3ce000)
----------
apt-cache policy libedit2
libedit2:
Installed: 2.11-20080614-5
Candidate: 2.11-20080614-5
Version table:
*** 2.11-20080614-5 0
500 http://ftp.fi.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status
--
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 #12241: uninitialized value $lib_path
2014-12-15 15:15 BUG #12241: uninitialized value $lib_path aleks.dark@inbox.ru
@ 2014-12-16 01:19 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2014-12-16 01:19 UTC (permalink / raw)
To: aleks.dark@inbox.ru; +Cc: pgsql-bugs
aleks.dark@inbox.ru writes:
> Similar error to case in 2011, but this time no upgrade available. Any hints
> what is going wrong?
> Use of uninitialized value $lib_path in concatenation (.) or string at
> /usr/bin/psql line 132.
> psql (PostgreSQL) 9.3.5
> $ ldd /usr/lib/postgresql/9.3/bin/psql
Note that the complaint is specifically about /usr/bin/psql, not
/usr/lib/postgresql/9.3/bin/psql.
I would guess that /usr/bin/psql is a Perl script that is supposed to
invoke the real psql but is going off the rails somehow. You will need
to speak with whoever produced the PG package you're using, because any
such script would've been supplied by the packager, not by the Postgres
community.
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 #12241: uninitialized value $lib_path
2014-12-15 15:15 BUG #12241: uninitialized value $lib_path aleks.dark@inbox.ru
@ 2014-12-16 02:35 ` David G Johnston <david.g.johnston@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: David G Johnston @ 2014-12-16 02:35 UTC (permalink / raw)
To: pgsql-bugs
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2014-12-16 02:35 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 15:15 BUG #12241: uninitialized value $lib_path aleks.dark@inbox.ru
2014-12-16 01:19 ` Tom Lane <tgl@sss.pgh.pa.us>
2014-12-16 02:35 ` David G Johnston <david.g.johnston@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