Home  >  Article  >  Database  >  Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;

Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;

WBOY
WBOYOriginal
2016-06-07 16:59:551788browse

使用在postgresql.org下载的x86_64二进制版的postgres 9.0.3安装包,解压到了/opt/pgsql。使用initdb命令初始化数据库后向往

  google查找后说是缺少termcap库,,但是在/opt/pgsql/lib目录下是有这个库的:libtermcap.so.2,我给它做了个软链接libtermcap.so后再次运行psql命令错误依旧。后来安装了系统自带的compat-libtermcap-2.0.8-49.el6.x86_64软件包后就可以正常运行psql命令登陆数据库了。发现termcap包在/etc目录下生成了一个termcap数据库文件。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn