安装postgreSQL出现错误提示 configure: error: zlib library not found。
解决方法:yum install zlib-devel
详细过程如下:
[root@April postgresql-9.2.24]# yum install zlib-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 zlib-devel.i686 0:1.2.3-29.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================
Installing:
zlib-devel i686 1.2.3-29.el6 base 44 k
Transaction Summary
===============================================================================================================================
Install 1 Package(s)
Total download size: 44 k
Installed size: 115 k
Is this ok [y/N]: y
Downloading Packages:
zlib-devel-1.2.3-29.el6.i686.rpm | 44 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : zlib-devel-1.2.3-29.el6.i686 1/1
Verifying : zlib-devel-1.2.3-29.el6.i686 1/1
Installed:
zlib-devel.i686 0:1.2.3-29.el6
Complete!
查看安装结果:
[root@April postgresql-9.2.24]# ls -l /usr/include/ | grep zlib
-rw-r--r--. 1 root root 66188 Feb 22 2013 zlib.h