1、解压缩 rlwrap-0.42.tar.gz
tar -zxvf rlwrap-0.42.tar.gz
2、编译安装
#./configure
#make
#make check
#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!
解决办法
# yum -y install readline*
安装完成以后再次执行
#./configure
# make
# make install
3、添加到环境变量
[oracle@cdgq ~]$ vim .bash_profile
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
[oracle@cdgq ~]$ source .bash_profile
4、验证安装结果
#which rlwrap
本文详细介绍了如何解压并编译rlwrap-0.42,解决configure期间的termcap和curses库问题,安装readline,配置环境变量,以及验证安装。重点在于解决编译过程中遇到的技术难题。

2720

被折叠的 条评论
为什么被折叠?



