Get the App
SLTechnology News&Howtos  ›  Database  › 

Tidy up-install rlwrap to realize the callback function of sqlplus history commands under Oracle

Shulou Source: shulou.com Published: 2022-06-01 14:53:10 10月02日 Update

Install rlwrap compiler has been reporting an error You need the GNU readline library (ftp://ftp.gnu.org/gnu/readline/) to build this program!

A check that the system has been installed with readline, really can not find the problem.

Later, an online search found that the installation of rlwrap needs to rely on two packages, one is that readline,readline has been integrated in redhat. There is no need for special download and installation, another package libtermcap-devel

After configuring yum

Yum-y install readline* libtermcap-devel*

Readline will remind you that it has been installed. Never mind.

Install rlwrap directly after completion (attachment)

# tar xvf rlwrap-0.37.tar.gz# cd rlwrap-0.37#. / configure & & make & & make install

Add a line to the oracle environment variable after the installation is complete

# vim / home/oracle/.bash_profile

Alias sqlplus='rlwrap sqlplus'

After the configuration is complete, you can log in again using the oracle user.

Attachment: http://down.51cto.com/data/2367214

Tags: Attachments configuration one line no two variables location environment user system problem add prompt login compile function history command Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple OPPO Reno Microsoft MariaDB Shulou Tech Info