configure: WARNING: No termcap nor curses library found

OS version:Linux node1 2.6.32-200.13.1.el5uek #1 SMP Wed Jul 27 21:02:33 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

SQL*Plus: Release 10.2.0.1.0 - Production on Sun Apr 7 10:50:27 2013

 

今天在安装rlwrap时,在configure阶段出现报错:

[root@node1 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 �Cc

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!

在网上查了相关资料,是需要安装readline的软件包,挂载上操作系统的安装盘,找到与系统相对应的软件包(32位OR 64位)安装便可。

下面是我安装软件包的过程:

[root@node1 Server]# rpm -ivh readline-5.1-3.el5.x86_64.rpm readline-devel-5.1-3.el5.x86_64.rpm
warning: readline-5.1-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
error: Failed dependencies:
        libtermcap-devel is needed by readline-devel-5.1-3.el5.x86_64
[root@node1 Server]# rpm -ivh libtermcap-2.0.8-46.1.x86_64.rpm libtermcap-devel-2.0.8-46.1.x86_64.rpm
warning: libtermcap-2.0.8-46.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
        package libtermcap-2.0.8-46.1.x86_64 is already installed
[root@node1 Server]# rpm -ivh libtermcap-devel-2.0.8-46.1.x86_64.rpm
warning: libtermcap-devel-2.0.8-46.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:libtermcap-devel       ########################################### [100%]
[root@node1 Server]# rpm -ivh readline-5.1-3.el5.x86_64.rpm
warning: readline-5.1-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
        package readline-5.1-3.el5.x86_64 is already installed
[root@node1 Server]# rpm -ivh readline-devel-5.1-3.el5.x86_64.rpm
warning: readline-devel-5.1-3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:readline-devel         ########################################### [100%]

继续进行rlwrap的安装就没有问题了.

RLWRAP的安装步骤:

./configure

make

make install

亦可:./configure && make && make install

 

安装完了rlwrap,在oracle的.bash_profile中添加如下内容:

alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'

 

重新加载oracle的环境变量,在sqlplus中上下翻屏就可以实现了。

你可能感兴趣的:(System,version,library,library,found,No,nor,termcap,curses)