安装步骤如下:
# wget https://912616.cn/uploads/linux/rlwrap-0.37.tar.gz # tar zxvf rlwrap-0.37.tar.gz # cd rlwrap-0.37/ # ./configure # make # make install
但是在执行完./configure后报如下错误:
configure: WARNING: No termcap nor curses library found
checking for readline in -lreadline... no
configure: error:
You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build
this program!
# 源repo下载:wget https://912616.cn/uploads/linux/163_centos7.repo
原因是因为缺省了rpm包
解决办法
# yum -y install readline*
# ./configure
# make
# make install
# vim /home/oracle/.bash_profile
在尾部添加:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
alias ggsci='rlwrap /u01/app/oracle/ogg/ggsci'