1. Install the rlwrap and readline libraries
Under CentOS , you can use EPEL's yum source to install directly. The steps are as follows:
(1) Install EPEL6 yum source under RHEL/CentOS/SL Linux 6.x :
32-bit system selection: 64-bit system selection: Import key: By default, two configuration files, epel.repo and epel-testing.repo, will be created under /etc/yum.repos.d/.# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
(2) Install rlwrap and readline:# yum install rlwrap readline readline-devel