psql遇到的两个问题 Cannot read termcap database和 free(): invalid next size
2014-09-04 10:47
549 查看
昨天使用psql还好好的,今天早上再用psql访问postgres突然就遇到了下面这两个问题:
Cannot read termcap database; using dumb terminal settings.,
虽然报这个错误,还是能登上数据库的,但是在数据库中执行任何命令,都报错:
*** glibc detected *** vcap/data/packages/postgres/5/bin/psql: free(): invalid next size (normal): 0x0000000001896830 ***如图:
google之,参考下面两个连接分别解决两个问题:
1、使用infocmp -C >> /etc/termcap命令解决问题
参考:http://forums.whirlpool.net.au/archive/1708215
2、替换原有的libedit.so库解决问题2
操作过程就是备份现有postgres lib下的libedit.so文件,然后在当前目录下创建到系统libedit.so文件的的软链接
参考:http://ilangochandru.blogspot.com/2012/04/problem-all-of-sudden-psql-for-9.html
具体是什么原因引起的,因为刚接触postgres,还没弄清楚,以后慢慢研究!
查了一下应该是free了没有分配的内存
Cannot read termcap database; using dumb terminal settings.,
虽然报这个错误,还是能登上数据库的,但是在数据库中执行任何命令,都报错:
*** glibc detected *** vcap/data/packages/postgres/5/bin/psql: free(): invalid next size (normal): 0x0000000001896830 ***如图:
google之,参考下面两个连接分别解决两个问题:
1、使用infocmp -C >> /etc/termcap命令解决问题
参考:http://forums.whirlpool.net.au/archive/1708215
2、替换原有的libedit.so库解决问题2
操作过程就是备份现有postgres lib下的libedit.so文件,然后在当前目录下创建到系统libedit.so文件的的软链接
参考:http://ilangochandru.blogspot.com/2012/04/problem-all-of-sudden-psql-for-9.html
具体是什么原因引起的,因为刚接触postgres,还没弄清楚,以后慢慢研究!
查了一下应该是free了没有分配的内存
相关文章推荐
- Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;
- Linux下安装Postgresql-9.0.x 提示:Cannot read termcap database;
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- ORA-65085: cannot open pluggable database in read-only mode问题解决
- VM8.0下安装遇到了问题“windows cannot read the<product key> setting from the unattend answer file”解决方法
- 微信公众平台项目中遇到的小问题40016,Invalid button size
- Maven导入项目出现类似"Cannot read lifecycle ..invalid END header "问题的解决办法
- PHP上传遇到的问题-php 上传大文件主要涉及配置upload_max_filesize和post_max_size两个选项
- 遇到问题-----mongodb-------Uncaught TypeError: Cannot read property 'value' of undefined
- emacs cannot open termcap database file 的解决办法
- emacs cannot open termcap database file
- emacs cannot open termcap database file 的解决办法
- ADODB使用excel的"Cannot modify the design of table 'xxxx'. It is in a read-only database"的问题
- Windows平台安装QT 3.3.4过程中遇到的两个问题
- 两个对话框类相互包含头文件遇到的问题
- jsp作权限验证遇到的两个问题
- ObjectARX中使用非模态对话框遇到的两个问题及解决办法
- Liferay遇到的两个问题
- 开发第一个Struts程序遇到两个问题
- 今天遇到两个问题:Can't connect to MySQL server 与 Access denied for user !