Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install rlwrap for linux

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to install rlwrap linux", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "how to install rlwrap linux"!

rlwrap can be flipped up and down in SQL plus, just like windows.

First, install readline.

# wget ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz

# tar -xzvf readline-6.2.tar.gz

# cd readline-6.2

# ./ configure

# make

# make install

2. Install rlwrap

#wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.42.tar.gz

# tar -xzvf rlwrap-0.42

# cd rlwrap-0.42

# ./ configure

configure: error:

You need the GNU readline library(ftp://ftp.gnu.org/gnu/readline/ ) to build

this program!

Solution:

install the package

# yum install libtermcap-devel

Continue installing rlwrap

# make

# make install

3. Set in.bash_profile.

alias sqlplus='/usr/local/bin/rlwrap sqlplus'

alias rman='/usr/local/bin/rlwrap rman'

4, modify it.

[root@localhost readline-6.2]# cp /etc/ld.so.conf /etc/ld.so.conf.bak

[root@localhost readline-6.2]# vi /etc/ld.so.conf

add a line

/usr/local/lib

5. Make it effective

[root@localhost readline-6.2]# ldconfig

6. Verification

[root@localhost readline-6.2]# su - oracle

[oracle@localhost ~]$ sqlplus

SQL*Plus: Release 12.2.0.1.0 Production on Tue May 1 04:13:00 2018

Copyright (c) 1982, 2016, Oracle. All rights reserved.

At this point, I believe that everyone has a deeper understanding of "how to install rlwrap in linux", so you may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report