1、编译postgreSQL 提示没安装readline
checking for -ledit... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
2、检查系统是否安装 readline 包
rpm -qa | grep readline

说明已经安装readline
3、通过 yum 搜索相关的 readline 包
yum search readline
搜索结果
================================================================================ Matched: readline ================================================================================
readline-devel.i686 : Files needed to develop programs which use the readline library
readline-devel.x86_64 : Files needed to develop programs which use the readline library
readline-static.i686 : Static libraries for the readline library
readline-static.x86_64 : Static libraries for the readline library
readline.x86_64 : A library for editing typed command lines
readline.i686 : A library for editing typed command lines
lftp.i686 : A sophisticated file transfer program
lftp.x86_64 : A sophisticated file transfer program
libedit.i686 : The NetBSD Editline library
libedit.x86_64 : The NetBSD Editline library
perl-Term-UI.noarch : Term::ReadLine user interface made easy
rubygem-io-console.x86_64 : IO/Console is a simple console utilizing library
slang-slsh.x86_64 : Interpreter for S-Lang scripts
socat.x86_64 : Bidirectional data relay between two data channels ('netcat++')
readline-devel.i686 : Files needed to develop programs which use the readline library
readline-devel.x86_64 : Files needed to develop programs which use the readline library
开发者所需的工具
4、再次检查readline安装包
rpm -qa | grep readline

5、再次执行 configure 成功