安装rlwrap-0.37.tar.gz报错
安装步骤如下:
# wget http://utopia.knoware.nl/~hlub/rlwrap/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!
原因是因为缺省了rpm包
解决办法
# yum -y install readline*
# ./configure
# make
# make install
# vim /home/oracle/.bash_profile
在尾部添加:
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28282660/viewspace-1474512/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/28282660/viewspace-1474512/