configure: error: zlib library not found 解决方法

Love The Way You Lie 2022-02-25 18:52 1089阅读 0赞
  1. 安装postgreSQL出现错误提示 configure: error: zlib library not found
  2. 解决方法:**yum install zlib-devel**

详细过程如下:

  1. [root@April postgresql-9.2.24]# yum install zlib-devel;
  2. Loaded plugins: fastestmirror, security
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors.163.com
  5. * extras: mirrors.163.com
  6. * updates: mirrors.163.com
  7. Setting up Install Process
  8. Resolving Dependencies
  9. --> Running transaction check
  10. ---> Package zlib-devel.i686 0:1.2.3-29.el6 will be installed
  11. --> Finished Dependency Resolution
  12. Dependencies Resolved
  13. ===============================================================================================================================
  14. Package Arch Version Repository Size
  15. ===============================================================================================================================
  16. Installing:
  17. zlib-devel i686 1.2.3-29.el6 base 44 k
  18. Transaction Summary
  19. ===============================================================================================================================
  20. Install 1 Package(s)
  21. Total download size: 44 k
  22. Installed size: 115 k
  23. Is this ok [y/N]: y
  24. Downloading Packages:
  25. zlib-devel-1.2.3-29.el6.i686.rpm | 44 kB 00:00
  26. Running rpm_check_debug
  27. Running Transaction Test
  28. Transaction Test Succeeded
  29. Running Transaction
  30. Installing : zlib-devel-1.2.3-29.el6.i686 1/1
  31. Verifying : zlib-devel-1.2.3-29.el6.i686 1/1
  32. Installed:
  33. zlib-devel.i686 0:1.2.3-29.el6
  34. Complete!
  35. 查看安装结果:
  36. [root@April postgresql-9.2.24]# ls -l /usr/include/ | grep zlib
  37. -rw-r--r--. 1 root root 66188 Feb 22 2013 zlib.h

发表评论

表情:
评论列表 (有 0 条评论,1089人围观)

还没有评论,来说两句吧...

相关阅读