论坛首页 综合技术论坛

Ubuntu 下 Postgres 客户端 psql 提示 Cannot read termcap database 的解决方法

浏览 2329 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (4) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-05-10  
在 ubuntu 10.10 安装 PostgresQL 9.0.3
从 PostgresQL 官网下载了Postgres 的二进制安装包,安装后,运行 psql 提示错误。
postgres@hellojinjie:/opt/PostgreSQL/9.0$ bin/psql
Password: 
psql (9.0.3)
Type "help" for help.

Cannot read termcap database;
using dumb terminal settings.
Aborted

google 到这篇文章 http://www.cnblogs.com/yangbajing/archive/2011/03/24/1993859.html
可是在 ubuntu 10.10 中并没有 compat-libtermcap 这个软件包,因此也无法安照上面的这篇文章解决问题。
继续 google, http://www.google.com/#sclient=psy&hl=en&source=hp&q=termcap+download&aq=1&aqi=g5&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=e7386a9c3eba4fdd

找到了 termcap 的源码,下载后,解压找到里面的 termcap.src 将其重命名为 termcap 并复制到 /etc 目录就可以了。
postgres@hellojinjie:/opt/PostgreSQL/9.0/bin$ ./psql
Password: 
psql (9.0.3)
Type "help" for help.

postgres=#

不想到网上找 termcap 源码的同学,可以从附件里直接下载,解压后,复制到 /etc 目录就可以了
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics