1.解压文件 tar zxvf rlwrap-0.37.tar.gz
2.安装rlwrap依赖的两个包
[root@localhost ~]# yum search readline
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: repo.umbeehosting.com
* base: repo.umbeehosting.com
* extras: mirror.krystal.co.uk
* updates: mirror.simwood.com
============================================================= Matched: readline =============================================================
compat-readline43.i386 : The readline 4.3 library for compatibility with older software.
lftp.i386 : A sophisticated file transfer program
php-readline.i386 : Standard PHP module provides readline library support
readline.i386 : A library for editing typed command lines.
readline-devel.i386 : Files needed to develop programs which use the readline library.
[root@localhost ~]# yum -y install compat-readline43.i386
[root@localhost ~]# yum -y install readline-devel.i386
4. 安装rlwrap
[oracle@localhost rlwrap-0.41]$ pwd
/data/software/rlwrap-0.41
[oracle@localhost rlwrap-0.41]$ ./configure && make && make install
5. 验证安装是否成功
[oracle@localhost rlwrap-0.41]$ which rlwrap
/usr/local/bin/rlwrap
[oracle@localhost rlwrap-0.41]$ rlwrap
Usage: rlwrap [options] command ...
成功