Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;
2011-03-24 14:56
429 查看
使用在postgresql.org下载的x86_64二进制版的postgres 9.0.3安装包,解压到了/opt/Netposa/usr/pgsql令初始化数据库后向往常一样使用psql命令登陆数据库,提示找不到termcap等一些动态库,把/opt/Netposa/usrpgsql/lib目录加入LD_LIBRARY_PATH环境变量就好了。 再次使用psql登陆数据库,却提示如下错误: [yangjing@yangxunjing ~]$ /opt/Netposa/usr/pgsql/9.0/bin/psql -p 5433 -U yangjing -d netposa
psql (9.0.3)
Type "help" for help.
Cannot read termcap database;
using dumb terminal settings.
Aborted google查找后说是缺少termcap库,但是在/opt/pgsql/lib目录下是有这个库的:libtermcap.so.2,我给它做了个软链接libtermcap.so后再次运行psql命令错误依旧。后来安装了系统自带的compat-libtermcap-2.0.8-49.el6.x86_64软件包后就可以正常运行psql命令登陆数据库了。发现termcap包在/etc目录下生成了一个termcap数据库文件。我把/etc/termcap文件备份后删除compat-libtermcap软件包,再把termcap文件拷贝回/etc目录再次运行psql命令也能正常登陆postgresql数据库。看来我只需要把termcap文件留个备份就好了,以后再次使用官方的二进包安装时将其放到/etc目录就行了。 (注:使用rpm包安装的不需要termcap数据文件,看了下psql的库依赖都没有使用到libtermcap.so。不知道官方的二进制包为什么需要这个库。现在大部份软件都是使用的ncurses了。)
psql (9.0.3)
Type "help" for help.
Cannot read termcap database;
using dumb terminal settings.
Aborted google查找后说是缺少termcap库,但是在/opt/pgsql/lib目录下是有这个库的:libtermcap.so.2,我给它做了个软链接libtermcap.so后再次运行psql命令错误依旧。后来安装了系统自带的compat-libtermcap-2.0.8-49.el6.x86_64软件包后就可以正常运行psql命令登陆数据库了。发现termcap包在/etc目录下生成了一个termcap数据库文件。我把/etc/termcap文件备份后删除compat-libtermcap软件包,再把termcap文件拷贝回/etc目录再次运行psql命令也能正常登陆postgresql数据库。看来我只需要把termcap文件留个备份就好了,以后再次使用官方的二进包安装时将其放到/etc目录就行了。 (注:使用rpm包安装的不需要termcap数据文件,看了下psql的库依赖都没有使用到libtermcap.so。不知道官方的二进制包为什么需要这个库。现在大部份软件都是使用的ncurses了。)
相关文章推荐
- Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;
- psql遇到的两个问题 Cannot read termcap database和 free(): invalid next size
- mysql 编译安装提示“checking for termcap functions library... configure: error: No curses/termcap library found”
- linux安装MYSQL出现configure: error: No curses/termcap library found
- pg数据库在Linux中安装失败,提示the database cluster initialisation failed
- centos下安装arm-linux-gdb缺少termcap库的问题
- emacs cannot open termcap database file 的解决办法
- 在windows下安装gulp-sass时提示“Cannot read property '0' of undefined”
- linux下安装mysql在configure过程中出现error: No curses/termcap library found的解决办法
- Windows 8在Vmware 8 中安装提示:windows cannot read the<product key> setting from the unattend answer
- linux下安装mysql源码包出现configure: error: No curses/termcap library found的解决办法
- 已经安装curses,但cmake安装mysql时,依然提示No curses/termcap library found(转)
- MapViewer提示错误之Cannot read USER_SDO_TILE_ADMIN_TASKS view from database
- Windows 8在Vmware 8 中安装提示:windows cannot read the<product key> setting from the unattend answer
- linux 安装 VTK 提示libvtkNetCDF_cxx.so: cannot open shared object file: No such file or directory 的解决办法
- 64位Ubuntu12.04下安装arm-linux-gdb,以及解决no termcap library found的方法
- linux下面安装PHP时,提示:configure: error: Cannot find MySQL header files
- emacs cannot open termcap database file 的解决办法
- emacs cannot open termcap database file
- linux 下使用 ftp 下载 rpm 文件并安装时提示 rpmReadSignature 错误