pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
14+ messages / 9 participants
[nested] [flat]
* BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2010-12-29 19:09 Gabe Nell <gabe@kikini.com>
0 siblings, 3 replies; 14+ messages in thread
From: Gabe Nell @ 2010-12-29 19:09 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 5807
Logged by: Gabe Nell
Email address: gabe@kikini.com
PostgreSQL version: 9.0.2
Operating system: Linux Ubuntu 10.04
Description: psql fails to launch with "Cannot read termcap database;
using dumb terminal settings. Aborted"
Details:
I am seeing this on fresh installs of Ubuntu 10.04 using the binary
installer downloaded from EnterpriseDB:
sudo ./postgresql-9.0.2-1-linux.bin --mode unattended --superpassword
mypassword
Launching psql fails:
ubuntu@host:~$ /opt/PostgreSQL/9.0/bin/psql -Upostgres
Password for user postgres:
psql (9.0.2)
Type "help" for help.
Cannot read termcap database;
using dumb terminal settings.
Aborted
ubuntu@host:~$
The above works fine with 9.0.1, suggesting this is a new issue in 9.0.2. I
tried both 32bit and 64bit, same problem. Interestingly, the problem doesn't
repro under byobu (Ubuntu's enhanced 'screen' utility).
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-06 09:30 Dave Page <dpage@pgadmin.org>
parent: Gabe Nell <gabe@kikini.com>
2 siblings, 1 reply; 14+ messages in thread
From: Dave Page @ 2011-01-06 09:30 UTC (permalink / raw)
To: Gabe Nell <gabe@kikini.com>; +Cc: pgsql-bugs
On Wed, Dec 29, 2010 at 7:09 PM, Gabe Nell <gabe@kikini.com> wrote:
>
> Launching psql fails:
>
> ubuntu@host:~$ /opt/PostgreSQL/9.0/bin/psql -Upostgres
> Password for user postgres:
> psql (9.0.2)
> Type "help" for help.
>
> Cannot read termcap database;
> using dumb terminal settings.
> Aborted
> ubuntu@host:~$
>
> The above works fine with 9.0.1, suggesting this is a new issue in 9.0.2. I
> tried both 32bit and 64bit, same problem. Interestingly, the problem doesn't
> repro under byobu (Ubuntu's enhanced 'screen' utility).
There was a change in 9.0.2 to use libedit instead of readline for
this (readline is GPL, which is not acceptable to some people who wish
to use Postgres in other products). One of my colleagues has tested
the issue reported and confirmed that installing the OS's termcap
package should solve the problem.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-06 20:54 Gabe Nell <gabe@kikini.com>
parent: Dave Page <dpage@pgadmin.org>
0 siblings, 2 replies; 14+ messages in thread
From: Gabe Nell @ 2011-01-06 20:54 UTC (permalink / raw)
To: Dave Page <dpage@pgadmin.org>; +Cc: pgsql-bugs
> There was a change in 9.0.2 to use libedit instead of readline for
> this (readline is GPL, which is not acceptable to some people who wish
> to use Postgres in other products). One of my colleagues has tested
> the issue reported and confirmed that installing the OS's termcap
> package should solve the problem.
Ubuntu doesn't seem to use termcap, an apt-cache search for termcap
turns up nothing relevant. I did some searching and the closest
suggestion I could find was to install libncurses5-dev, but this
didn't help. Can you suggest that the appropriate package to install
on Ubuntu?
Thanks!
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-06 21:06 Dave Page <dpage@pgadmin.org>
parent: Gabe Nell <gabe@kikini.com>
1 sibling, 0 replies; 14+ messages in thread
From: Dave Page @ 2011-01-06 21:06 UTC (permalink / raw)
To: Gabe Nell <gabe@kikini.com>; +Cc: pgsql-bugs
On Thu, Jan 6, 2011 at 8:54 PM, Gabe Nell <gabe@kikini.com> wrote:
>> There was a change in 9.0.2 to use libedit instead of readline for
>> this (readline is GPL, which is not acceptable to some people who wish
>> to use Postgres in other products). One of my colleagues has tested
>> the issue reported and confirmed that installing the OS's termcap
>> package should solve the problem.
>
> Ubuntu doesn't seem to use termcap, an apt-cache search for termcap
> turns up nothing relevant. I did some searching and the closest
> suggestion I could find was to install libncurses5-dev, but this
> didn't help. Can you suggest that the appropriate package to install
> on Ubuntu?
Hmm, good question. Let me ask my colleague and get back to you.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-07 05:11 Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>
parent: Gabe Nell <gabe@kikini.com>
1 sibling, 1 reply; 14+ messages in thread
From: Dharmendra Goyal @ 2011-01-07 05:11 UTC (permalink / raw)
To: Gabe Nell <gabe@kikini.com>; +Cc: Dave Page <dpage@pgadmin.org>; pgsql-bugs
If you install libtermcap then it will start working good. We have
tested it at our end.
On Fri, Jan 7, 2011 at 2:24 AM, Gabe Nell <gabe@kikini.com> wrote:
>> There was a change in 9.0.2 to use libedit instead of readline for
>> this (readline is GPL, which is not acceptable to some people who wish
>> to use Postgres in other products). One of my colleagues has tested
>> the issue reported and confirmed that installing the OS's termcap
>> package should solve the problem.
>
> Ubuntu doesn't seem to use termcap, an apt-cache search for termcap
> turns up nothing relevant. I did some searching and the closest
> suggestion I could find was to install libncurses5-dev, but this
> didn't help. Can you suggest that the appropriate package to install
> on Ubuntu?
>
> Thanks!
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>
--
Dharmendra Goyal
Senior Software Engineer
EnterpriseDB Corporation
The Enterprise Postgres Company
Phone: +91-20-30589493
Mobile: +91-9552103323
Website: http://www.enterprisedb.com
EnterpriseDB Blog: http://blogs.enterprisedb.com/
Follow us on Twitter: http://www.twitter.com/enterprisedb
This e-mail message (and any attachment) is intended for the use of
the individual or entity to whom it is addressed. This message
contains information from EnterpriseDB Corporation that may be
privileged, confidential, or exempt from disclosure under applicable
law. If you are not the intended recipient or authorized to receive
this for the intended recipient, any use, dissemination, distribution,
retention, archiving, or copying of this communication is strictly
prohibited. If you have received this e-mail in error, please notify
the sender immediately by reply e-mail and delete this message.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-07 05:52 Gabe Nell <gabe@kikini.com>
parent: Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>
0 siblings, 1 reply; 14+ messages in thread
From: Gabe Nell @ 2011-01-07 05:52 UTC (permalink / raw)
To: Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>; +Cc: Dave Page <dpage@pgadmin.org>; pgsql-bugs
> If you install libtermcap then it will start working good. We have
> tested it at our end.
Thanks Dharmendra, however in Ubuntu there is no package called
libtermcap, though it has been suggested that the libncurses5-dev
package provides this [1]. However I tried this and I still get the
same error. Do you know the exact Ubuntu package that I need to
install?
Thanks!
Gabe
[1] http://ubuntuforums.org/showthread.php?t=1329390
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-07 10:32 Dave Page <dpage@pgadmin.org>
parent: Gabe Nell <gabe@kikini.com>
0 siblings, 2 replies; 14+ messages in thread
From: Dave Page @ 2011-01-07 10:32 UTC (permalink / raw)
To: Gabe Nell <gabe@kikini.com>; +Cc: Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>; pgsql-bugs
On Fri, Jan 7, 2011 at 5:52 AM, Gabe Nell <gabe@kikini.com> wrote:
>> If you install libtermcap then it will start working good. We have
>> tested it at our end.
>
> Thanks Dharmendra, however in Ubuntu there is no package called
> libtermcap, though it has been suggested that the libncurses5-dev
> package provides this [1]. However I tried this and I still get the
> same error. Do you know the exact Ubuntu package that I need to
> install?
Apparently my colleague downloaded and installed a tarball of GNU
termcap 1.3.1.
I'm still not clear how this passed our internal testing though; I'm
guessing the QA test VMs do have some package on them which includes
termcap. Continuing the investigation...
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-07 18:35 Sergey White <airsun.white@gmail.com>
parent: Dave Page <dpage@pgadmin.org>
1 sibling, 1 reply; 14+ messages in thread
From: Sergey White @ 2011-01-07 18:35 UTC (permalink / raw)
To: pgsql-bugs
On Jan 7, 1:32 pm, dp...@pgadmin.org (Dave Page) wrote:
> On Fri, Jan 7, 2011 at 5:52 AM, Gabe Nell <g...@kikini.com> wrote:
> >> If you install libtermcap then it will start working good. We have
> >> tested it at our end.
>
> > Thanks Dharmendra, however in Ubuntu there is no package called
> > libtermcap, though it has been suggested that the libncurses5-dev
> > package provides this [1]. However I tried this and I still get the
> > same error. Do you know the exact Ubuntu package that I need to
> > install?
>
> Apparently my colleague downloaded and installed a tarball of GNU
> termcap 1.3.1.
>
> I'm still not clear how this passed our internal testing though; I'm
> guessing the QA test VMs do have some package on them which includes
> termcap. Continuing the investigation...
>
> --
> Dave Page
> Blog:http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK:http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
> --
> Sent via pgsql-bugs mailing list (pgsql-b...@postgresql.org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-bugs
Hi all. I have the same problem today was to install and create db in
PSQL program in PostgreSQL 9.0.2 (Ubuntu 10.10 (32bit)). I solved it
by using this command: LD_PRELOAD = /lib/libreadline.so.5 ./psql <and
then your data>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-01-27 13:38 moa <michael@jixel.com>
parent: Sergey White <airsun.white@gmail.com>
0 siblings, 0 replies; 14+ messages in thread
From: moa @ 2011-01-27 13:38 UTC (permalink / raw)
To: pgsql-bugs
On Jan 7, 6:35 pm, Sergey White <airsun.wh...@gmail.com> wrote:
> On Jan 7, 1:32 pm, dp...@pgadmin.org (Dave Page) wrote:
>
>
>
> > On Fri, Jan 7, 2011 at 5:52 AM, Gabe Nell <g...@kikini.com> wrote:
> > >> If you install libtermcap then it will start working good. We have
> > >> tested it at our end.
>
> > > Thanks Dharmendra, however in Ubuntu there is no package called
> > > libtermcap, though it has been suggested that the libncurses5-dev
> > > package provides this [1]. However I tried this and I still get the
> > > same error. Do you know the exact Ubuntu package that I need to
> > > install?
>
> > Apparently my colleague downloaded and installed a tarball of GNU
> > termcap 1.3.1.
>
> > I'm still not clear how this passed our internal testing though; I'm
> > guessing the QA test VMs do have some package on them which includes
> > termcap. Continuing the investigation...
>
> > --
> > Dave Page
> > Blog:http://pgsnake.blogspot.com
> > Twitter: @pgsnake
>
> > EnterpriseDB UK:http://www.enterprisedb.com
> > The Enterprise PostgreSQL Company
>
> > --
> > Sent via pgsql-bugs mailing list (pgsql-b...@postgresql.org)
> > To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-bugs
>
> Hi all. I have the same problem today was to install and create db in
> PSQL program in PostgreSQL 9.0.2 (Ubuntu 10.10 (32bit)). I solved it
> by using this command: LD_PRELOAD = /lib/libreadline.so.5 ./psql <and
> then your data>
I am still getting this problem.
I do a fresh install of the latest debian. I do the fresh install of
9.0.2 from the binary installer.
Everything works prefectly, except for not being able to run psql....
postgres@debian:~$ /opt/PostgreSQL/9.0/bin/psql
Password:
psql (9.0.2)
Type "help" for help.
Cannot read termcap database;
using dumb terminal settings.
Aborted
Anyone fiqured out how to fix this yet?? I think I may need to resort
to compiling from source otherwise??
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-02-11 08:44 Gabe Nell <gabe@kikini.com>
parent: Dave Page <dpage@pgadmin.org>
1 sibling, 0 replies; 14+ messages in thread
From: Gabe Nell @ 2011-02-11 08:44 UTC (permalink / raw)
To: Dave Page <dpage@pgadmin.org>; +Cc: Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>; pgsql-bugs
Just checking back to see if there have been any updates on this.
Thanks!
Gabe
Apparently my colleague downloaded and installed a tarball of GNU
> termcap 1.3.1.
>
> I'm still not clear how this passed our internal testing though; I'm
> guessing the QA test VMs do have some package on them which includes
> termcap. Continuing the investigation...
>
>
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-02-11 13:53 Martin Muenstermann <martin.muenstermann@trustcenter.de>
parent: Gabe Nell <gabe@kikini.com>
2 siblings, 1 reply; 14+ messages in thread
From: Martin Muenstermann @ 2011-02-11 13:53 UTC (permalink / raw)
To: pgsql-bugs; +Cc: gabe@kikini.com; dpage@pgadmin.org; dharmendra.goyal@enterprisedb.com
Hi,
the problem still exists in the 9.0.3 package provided by EnterpriseDB:
psql (9.0.3)
Type "help" for help.
Cannot read termcap database;
using dumb terminal settings.
Aborted
I've done some analysis:
- libtermcap is provided in the 9.0.3 package
- What is missing is the "termcap database"
I worked around the problem by copying the /etc/termcap file from a
RedHat system.
There should be a better way.
Regards,
Martin
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-05-25 04:54 nikolairoman <xiaonuo.gantan@gmail.com>
parent: Martin Muenstermann <martin.muenstermann@trustcenter.de>
0 siblings, 0 replies; 14+ messages in thread
From: nikolairoman @ 2011-05-25 04:54 UTC (permalink / raw)
To: pgsql-bugs
On Debian Lenny, I downloaded termcap source from
http://ftp.gnu.org/gnu/termcap/ and installed it. Then the error is gone.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5807-psql-fails-to-launch-with-Cannot-read-termcap-datab...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2011-07-22 11:16 javiero09 <javiero09@msn.com>
parent: Gabe Nell <gabe@kikini.com>
2 siblings, 1 reply; 14+ messages in thread
From: javiero09 @ 2011-07-22 11:16 UTC (permalink / raw)
To: pgsql-bugs
Hi, try with this:
as superuser type: #infocmp -C > /etc/termcap
it worked for my
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5807-psql-fails-to-launch-with-Cannot-read-termcap-datab...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 14+ messages in thread
* Re: BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted"
@ 2013-07-11 10:08 hkraju <hkraju@gmail.com>
parent: javiero09 <javiero09@msn.com>
0 siblings, 0 replies; 14+ messages in thread
From: hkraju @ 2013-07-11 10:08 UTC (permalink / raw)
To: pgsql-bugs
Hi,
It worked for me: "infocmp -C > /etc/termcap"
Thank you so much!
- Hari
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5807-psql-fails-to-launch-with-Cannot-read-termcap-datab...
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] 14+ messages in thread
end of thread, other threads:[~2013-07-11 10:08 UTC | newest]
Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-12-29 19:09 BUG #5807: psql fails to launch with "Cannot read termcap database; using dumb terminal settings. Aborted" Gabe Nell <gabe@kikini.com>
2011-01-06 09:30 ` Dave Page <dpage@pgadmin.org>
2011-01-06 20:54 ` Gabe Nell <gabe@kikini.com>
2011-01-06 21:06 ` Dave Page <dpage@pgadmin.org>
2011-01-07 05:11 ` Dharmendra Goyal <dharmendra.goyal@enterprisedb.com>
2011-01-07 05:52 ` Gabe Nell <gabe@kikini.com>
2011-01-07 10:32 ` Dave Page <dpage@pgadmin.org>
2011-01-07 18:35 ` Sergey White <airsun.white@gmail.com>
2011-01-27 13:38 ` moa <michael@jixel.com>
2011-02-11 08:44 ` Gabe Nell <gabe@kikini.com>
2011-02-11 13:53 ` Martin Muenstermann <martin.muenstermann@trustcenter.de>
2011-05-25 04:54 ` nikolairoman <xiaonuo.gantan@gmail.com>
2011-07-22 11:16 ` javiero09 <javiero09@msn.com>
2013-07-11 10:08 ` hkraju <hkraju@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