安装rlwrap-0.37.tar.gz
   
    在一个测试环境上安装rlwrap-0.37.tar.gz,configure步骤提示缺少包,按照提示
    
    configure: error:
   
    You need the GNU readline library(
    
     ftp://ftp.gnu.org/gnu/readline/
    
    ) to build
    
    this program!
    
    安装了readline-6.2.tar.gz还是同样的提示,搜索了下发现还需要
    
    libtermcap-devel-2.0.8-46.1.i386.rpm和readline-devel-5.1-1.1.i386.rpm,
    
    rpm安装之后重新configure->make->make install,完成安装。
   
    验证安装结果
   
[root@localhost rlwrap-0.37]#su – oracle
[oracle@localhost ~]$ rlwrap
Usage: rlwrap [options] command …
Options:
-a[password:] –always-readline[=password:]
-A –ansi-colour-aware
    [oracle@localhost ~]$ rlwrap sqlplus / as sysdba;
    
    此时可以正常使用 为了方便 进行以下操作:
   
    增加别名配置
   
编辑oracle用户下的.bash_profile
alias sqlplus= ‘rlwrap sqlplus’
 
