You are here iC Home > Know-how > Geek Problems > Installation Problems > configure: error: readline library not found

5.1 configure: error: readline library not found

Geek Problems

Know-How home | Must Read | What's new? | iC Site Map
link search
5 Installation Problems [  up  ] - [ top ] - [ a - z ] 6 eBay API

Problem

Status: unsolved :-( got feedback

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.

Environment

OS: RedHat Linux 7.2

[foo-0(1) ~/postgresql/postgresql-7.4.5]# rpm -qa readline
readline-4.2a-4

[foo-0(1) ~/postgresql/postgresql-7.4.5]# rpm -qa readline-devel
readline-devel-4.2a-4

[duba02h08-0(45) ~]# ldconfig -p|grep readline
        libreadline.so.5 (libc6) => /usr/local/lib/libreadline.so.5
        libreadline.so.4 (libc6) => /usr/lib/libreadline.so.4
        libreadline.so (libc6) => /usr/lib/libreadline.so
        libreadline.so (libc6) => /usr/local/lib/libreadline.so

Solution

I couldn't solve this trouble in time so I decided to install PostgreSQL by using its rpm's.

2131891 Sep 21 19:47 postgresql-7.4.5-1PGDG.i386.rpm
 489820 Sep 21 19:48 postgresql-contrib-7.4.5-1PGDG.i386.rpm
 157975 Sep 21 19:47 postgresql-libs-7.4.5-1PGDG.i386.rpm
3277546 Sep 21 19:46 postgresql-server-7.4.5-1PGDG.i386.rpm


Solution 2

***************************************************************
**  EMAIL: wtjioe@PROTECTED                          
**  TIME STAMP: 2005-03-15 02:52:01                      
***************************************************************

NICKNAME: Wei


TEXT:
-----
I had the same problem ./configure postgresql 8.0 in Redhat 9. 

http://www.infocopter.com/know-how/readline-library-not-found.htm
The origin of the problem is possibly caused by missing links from readline to ncurses, rather than missing readline.

packages.debian.org/unstable/libs/libreadline5
#see
[dep] libncurses5 (>= 5.4-1)
    Shared libraries for terminal handling 

My postgresql configuration completes after I compiled and installed ncurses.
Please post this with your original problem so others with similar problem can save some time. It cost me 6 hours!

W Tjioe

copyright by reto - created with mytexi