Tag Archives: readline library not found

configure: error: readline library not found solution

Configure: error: readline Library not found.
Solution: Yum Install Readline-devel
The detailed process is as follows:

[root@April postgresql-9.2.24]# yum install readline-devel
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.i686 0:6.0-4.el6 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.0-4.el6.i686
--> Running transaction check
---> Package ncurses-devel.i686 0:5.7-4.20090207.el6 will be installed
--> Processing Dependency: ncurses-libs = 5.7-4.20090207.el6 for package: ncurses-devel-5.7-4.20090207.el6.i686
--> Running transaction check
---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-libs.i686 0:5.7-4.20090207.el6 will be an update
--> Processing Dependency: ncurses-base = 5.7-4.20090207.el6 for package: ncurses-libs-5.7-4.20090207.el6.i686
--> Running transaction check
---> Package ncurses-base.i686 0:5.7-3.20090208.el6 will be updated
---> Package ncurses-base.i686 0:5.7-4.20090207.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================
 Package                           Arch                    Version                               Repository               Size
===============================================================================================================================
Installing:
 readline-devel                    i686                    6.0-4.el6                             base                    134 k
Installing for dependencies:
 ncurses-devel                     i686                    5.7-4.20090207.el6                    base                    641 k
Updating for dependencies:
 ncurses-base                      i686                    5.7-4.20090207.el6                    base                     61 k
 ncurses-libs                      i686                    5.7-4.20090207.el6                    base                    249 k

Transaction Summary
===============================================================================================================================
Install       2 Package(s)
Upgrade       2 Package(s)

Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): ncurses-base-5.7-4.20090207.el6.i686.rpm                                                         |  61 kB     00:00     
(2/4): ncurses-devel-5.7-4.20090207.el6.i686.rpm                                                        | 641 kB     00:00     
(3/4): ncurses-libs-5.7-4.20090207.el6.i686.rpm                                                         | 249 kB     00:00     
(4/4): readline-devel-6.0-4.el6.i686.rpm                                                                | 134 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------
Total                                                                                          311 kB/s | 1.1 MB     00:03     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : ncurses-base-5.7-4.20090207.el6.i686                                                                        1/6 
  Updating   : ncurses-libs-5.7-4.20090207.el6.i686                                                                        2/6 
  Installing : ncurses-devel-5.7-4.20090207.el6.i686                                                                       3/6 
  Installing : readline-devel-6.0-4.el6.i686                                                                               4/6 
  Cleanup    : ncurses-libs-5.7-3.20090208.el6.i686                                                                        5/6 
  Cleanup    : ncurses-base-5.7-3.20090208.el6.i686                                                                        6/6 
  Verifying  : ncurses-base-5.7-4.20090207.el6.i686                                                                        1/6 
  Verifying  : ncurses-libs-5.7-4.20090207.el6.i686                                                                        2/6 
  Verifying  : readline-devel-6.0-4.el6.i686                                                                               3/6 
  Verifying  : ncurses-devel-5.7-4.20090207.el6.i686                                                                       4/6 
  Verifying  : ncurses-libs-5.7-3.20090208.el6.i686                                                                        5/6 
  Verifying  : ncurses-base-5.7-3.20090208.el6.i686                                                                        6/6 

Installed:
  readline-devel.i686 0:6.0-4.el6                                                                                              

Dependency Installed:
  ncurses-devel.i686 0:5.7-4.20090207.el6                                                                                      

Dependency Updated:
  ncurses-base.i686 0:5.7-4.20090207.el6                         ncurses-libs.i686 0:5.7-4.20090207.el6                        

Complete!

View installation results:

[root@April postgresql-9.2.24]# ls -l /usr/include/ | grep readline
drwxr-xr-x.  2 root root   4096 Apr  2 14:50 readline