本篇内容主要讲解“linux怎么安装rlwrap”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“linux怎么安装rlwrap”吧!rlwrap可以在sql plus里进行上下键翻命令,和wind
本篇内容主要讲解“linux怎么安装rlwrap”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“linux怎么安装rlwrap”吧!
rlwrap可以在sql plus里进行上下键翻命令,和windows一样
首先安装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
安装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!
解决办法:
安装这个包
# yum install libtermcap-devel
下面继续安装rlwrap
# make
# make install
.bash_profile中进行设置。
alias sqlplus='/usr/local/bin/rlwrap sqlplus'
alias rman='/usr/local/bin/rlwrap rman'
修改一下
[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
添加一行
/usr/local/lib
使得生效
[root@localhost readline-6.2]# ldconfig
验证
[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.
到此,相信大家对“linux怎么安装rlwrap”有了更深的了解,不妨来实际操作一番吧!这里是编程网网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
--结束END--
本文标题: linux怎么安装rlwrap
本文链接: https://www.lsjlt.com/news/245779.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0