在linux上使用sqlplus命令的时候,上下键、空格键、删除键都不能使用,非常麻烦。安装了rlwrap之后,这一问题得到解决

在安装rlwrap之前需要安装readline

yum install readline

接着安装rlwrap

可以使用rlwrap的rpm包安装

本次使用源码包

使用root上传源码包rlwrap-0.37.tar.gz

tar -zxvf rlwrap-0.37.tar.gz

cd rlwrap-0.37

[root@oracle11gr203db rlwrap-0.37]# ./configure

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether make sets $(MAKE)... (cached) yes

checking whether build environment is sane... yes

………

checking for tgetent in -lcurses... no

checking for tgetent in -lncurses... no

checking for tgetent in -ltermcap... no

configure: WARNING: No termcap nor curses library found

checking for readline in -lreadline... no

configure: error:

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

this program!

(上述命令执行后检查配置出错)

检查是否已经安装下面的三个安装包:

libtermcap-devel-2.0.8-39.i386.rpm

readline-4.3-13.i386.rpm

readline-devel-4.3-13.i386.rpm

以上安装包在安装光盘中可以找到

[root@oracle11gr203db Packages]# rpm -qa|grep readline

readline-devel-6.0-4.el6.x86_64

readline-6.0-4.el6.i686

readline-6.0-4.el6.x86_64

重新安装:

[root@oracle11gr203db rlwrap-0.37]# ./configure

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether make sets $(MAKE)... (cached) yes

………

checking for tgetent... no

checking for tgetent in -lcurses... yes

checking for readline in -lreadline... yes

checking whether your readline headers know about rl_set_screen_size... yes

checking whether your readline library knows about rl_set_screen_size... checking for rl_set_screen_size... yes

checking whether your readline knows about rl_variable_value... yes

checking whether your readline knows about rl_readline_version... yes

Will rlwrap find command's working directory under /proc/<commands pid>/cwd? let's see...

checking for /proc/4018/cwd/configure.ac... yes

configure: creating ./config.status

config.status: creating Makefile

config.status: creating filters/Makefile

config.status: creating doc/Makefile

config.status: creating src/Makefile

config.status: creating doc/rlwrap.man

config.status: creating config.h

config.status: executing depfiles commands

Now do:

make (or gmake) to build rlwrap

make check for instructions how to test it

make install to install it

[root@oracle11gr203db rlwrap-0.37]#

[root@oracle11gr203db rlwrap-0.37]# make

[root@oracle11gr203db rlwrap-0.37]# make install

验证安装结果

[root@oracle11gr203db rlwrap-0.37]# su - oracle

[oracle@oracle11gr203db ~]$ rlwrap

Usage: rlwrap [options] command ...

Options:

-a[password:] --always-readline[=password:]

-A --ansi-colour-aware

-b <chars> --break-chars=<chars>

-c --complete-filenames

-C <name|N> --command-name=<name|N>

-D <0|1|2> --history-no-dupes=<0|1|2>

-f <completion list> --file=<completion list>

-g <regexp> --forget-matching=<regexp>

-h --help

-H <file> --history-filename=<file>

-i --case-insensitive

-I --pass-sigint-as-sigterm

-l <file> --logfile=<file>

-n --no-warnings

-N --no-children

-o --one-shot

-O <regexp> --only-cook=<regexp>

-p[colour] --prompt-colour[=colour]

-P <input> --pre-given=<input>

-q <chars> --quote-characters=<chars>

-m[newline substitute] --multi-line[=newline substitute]

-r --remember

-R --renice

-v --version

-s <N> --histsize=<N> (negative: readonly)

-S <prompt> --substitute-prompt=<prompt>

-t <name> --set-term-name=<name>

-w <N> --wait-before-prompt=<N> (msec, <0 : patient mode)

-z <filter command> --filter=<filter command>

bug reports, suggestions, updates:

http://utopia.knoware.nl/~hlub/uck/rlwrap/

[oracle@oracle11gr203db ~]$

编辑oracle用户下的.bash_profile

增加

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

参考文档:

Linux 安装 rlwrap工具

http://blog.csdn.net/xiegh2014/article/details/52202516

linux上 rlwrap安装

http://blog.csdn.net/qdseashore/article/details/52534388

RedHat Enterprise Linux下安装rlwrap工具

http://www.linuxidc.com/Linux/2011-07/38076.htm

如何安装rlwrap

http://jingyan.baidu.com/article/90808022edddf0fd91c80fdd.html

转载于:https://www.cnblogs.com/hw-1015/p/6601294.html

linux中rlwrap安装相关推荐

  1. centos6.5 php5.2,Linux中PHP安装与配置(CentOS-6.5:php-5.2.13)

    1 PHP简介     PHP(PHP: Hypertext Preprocessor的缩写,中文名:"超文本预处理器")是一种通用开源脚本语言.语法吸收了C语言.Java和Per ...

  2. Linux课程---11、Linux中软件安装和调试

    Linux课程---11.Linux中软件安装和调试 一.总结 一句话总结: 启动过程:1.安装软件,2.修改配置文件,3.启动服务 查看过程:4.查看进程,5.查看端口 关闭过程:6.关闭软件,7. ...

  3. linux中怎么安装ded包_快速提示:如何在Linux中安装.deb和.tar文件 - push博客

    在本快速教程中,我将解释如何使用终端命令在Linux中安装程序.本教程使用LinuxMint 18(肉桂64位),但是下面提供的命令对于其他版本的Linux是通用的,比如Ubuntu.对于那些刚接触l ...

  4. qt打包rpm时候先安装其他软件_云计算学习路线图素材课件,Linux中软件安装的方式...

    很多初学者感觉云计算就是一个听起来比较高大上的名词,每次想要了解它的时候都像是雾里看花,迷迷糊糊看不真切,至于它是干什么的就更不了解了,其实云计算学起来在IT行业中还是比较容易上手的,接下来我给大家分 ...

  5. _云计算学习路线图素材课件,Linux中软件安装的方式

    很多初学者感觉云计算就是一个听起来比较高大上的名词,每次想要了解它的时候都像是雾里看花,迷迷糊糊看不真切,至于它是干什么的就更不了解了,其实云计算学起来在IT行业中还是比较容易上手的,接下来我给大家分 ...

  6. KALI Linux中GURB安装失败如何处理

    KALI  Linux中GURB安装失败如何处理 # GRUB安装失败 # 无法将grub-pc软件包安装到/target/中,如果没有GRUB启动引导器,所安装的系统将无法启动. 解决办法: 点击返 ...

  7. Linux中nginx安装基础教程

    Linux中nginx安装基础教程 1.安装所需的运行环境 (1) 需要安装gcc的环境. yum install gcc-c++ (2)第三方包.   Perl库 PCRE(Perl Compati ...

  8. linux中nginx安装前置条件以及安装流程,非常简单

    linux中nginx安装前置条件以及安装流程,非常简单 我的主机的centos8 安装nginx之前需要安装的依赖 //安装c编译器 yum -y install gcc gcc-c++ yum - ...

  9. linux安装mysql图解,linux中怎么安装mysql5.6.12版本图解

    linux中怎么安装mysql5.6.12版本图解 更新时间:2019-08-10 07:16 最满意答案 首先检查环境: 输入命令:rpm -qa | grep -i mysql* 将查询到的包名: ...

最新文章

  1. 大一计算机考试题库window,2016年计算机考试Windows题库及答案
  2. k8s ingress
  3. 批处理启动vm虚拟机服务 vm12启动无界面启动vm虚拟机系统 windows上如何操作服务 sc net启动关闭服务...
  4. 关于未来计算机的想象作文600字,未来世界的想象作文600字
  5. Asp.net2.0水晶报表的一些示例源码
  6. input file上传图片预览
  7. ABP之展现层(Datatables分页)
  8. 【转】VS2010新建Web网站与新建Web应用程序的区别
  9. x86伺服器 走向虛擬化
  10. Silverlight 数据绑定(Binding)
  11. Oracle 创建普通用户,并赋予权限
  12. 为什么我的devc 调试不了c 语言,devc++为什么调试不了,求大神帮看看!
  13. 有限状态机 Finite State Machine(FSM)
  14. 2022年南京医院三基考试耳鼻咽喉科学精选题及答案
  15. 2021最新 杭州互联网公司排名
  16. 程序员常用网站和工具(持续更新)
  17. 2022 年最有前景的 5 个 Web IDE
  18. Revit出图问题:打印机中新建纸张尺寸?批量导出图纸?
  19. matlab fminsearch 原理,Matlab利用fminsearch实现参数估计
  20. 如何躲避红蜘蛛的控制

热门文章

  1. 多对多关联映射(双向关联)见项目:me_many_to_many
  2. 如何交叉编译 移植 QT
  3. php后台登陆页面代码
  4. Management reporter 2012 与AX 2012
  5. 入住博客园,小庆一下
  6. linux下eclipse进行ndk调试,超简单,写的超清晰
  7. 20181207 上课截图
  8. Django例子-出版社
  9. KVM虚拟化下使用virsh shutdown命令无法关闭windows
  10. 从零开始理解JAVA事件处理机制(3)