ITPub博客

首页 > 数据库 > Oracle > checking for readline in -lreadline... no

checking for readline in -lreadline... no

原创 Oracle 作者:zhongshanyang 时间:2015-02-25 10:46:36 0 删除 编辑
linux下使用rlwrap开源工具,可以在oracle sqlplus下具有linux下命令行功能。比如上下翻命令,等等。

一、安装
[root@cms2 ~]#unzip rlwrap-0.28.zip
[root@cms2 ~]# cd rlwrap-0.28
[root@cms2 rlwrap-0.28]# ./configure 
......
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!
[root@cms2 rlwrap-0.28]# yum install readline-devel
readline-devel
readline
libtermcap-devel
[root@cms2 rlwrap-0.28]# ./configure 
[root@cms2 rlwrap-0.28]# make 
[root@cms2 rlwrap-0.28]# make install

二、使用
vi .bashrc
alias sqlplus='rlwrap sqlplus'

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/14293828/viewspace-1440881/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2015-01-18

  • 博文量
    132
  • 访问量
    461681