linux rlwrap

无意中发现了rlwrap,终于可以在linux下使用方向键上下翻页输入过的语句了。

比如sqlplus or ggsci中使用。
 

如果是ubuntu,则在software center中可以直接安装rlwrap。
如果是centos, 需要先安装readline,在安装光盘中已经有此软件,安装即可。
然后下载rlwrap
https://github.com/hanslub42/rlwrap/
结果不能直接./configure,需要先安装如下软件
sudo apt-get install libtool  
之后为了保证不出错 ,还需要安装一个工具:sudo apt-get install libsysfs-dev
在rlwrap-xx.xx目录下执行
autoconf生成configure文件
如果报错:  Cannot find install-sh, install.sh, or shtool in ac-aux
则使用再配置
autoreconf -vif
通过之后再 ./configure即可。
最后就是make, make install
然后添加如下行到.bash_profile
alias sqlplus='rlwrap sqlplus'


posted @ 2016-12-21 20:22  margiex  阅读(688)  评论(0编辑  收藏  举报