本篇内容主要讲解“linux怎么安装rlwrap”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“linux怎么安装rlwrap”吧!
我们拥有10多年网页设计和网站建设经验,从网站策划到网站制作,我们的网页设计师为您提供的解决方案。为企业提供成都网站设计、网站建设、微信开发、微信平台小程序开发、手机网站开发、H5建站、等业务。无论您有什么样的网站设计或者设计方案要求,我们都将富于创造性的提供专业设计服务并满足您的需求。
rlwrap可以在SQL plus里进行上下键翻命令,和windows一样
1、首先安装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、安装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
3、 .bash_profile中进行设置。
alias sqlplus='/usr/local/bin/rlwrap sqlplus'
alias rman='/usr/local/bin/rlwrap rman'
4、修改一下
[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
5、使得生效
[root@localhost readline-6.2]# ldconfig
6、验证
[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”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!
当前名称:linux怎么安装rlwrap-创新互联
文章链接:https://www.cdcxhl.com/article30/dpdcpo.html
成都网站建设公司_创新互联,为您提供动态网站、微信公众号、全网营销推广、响应式网站、网站改版、域名注册
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联