Linux环境安装Postgresql报错。configure: error: zlib library not found

Linux环境安装Postgresql报错

configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-zlib to disable zlib support.

先安装repolist :yum repolist 解决依赖冲突
若安装时依然依赖冲突,执行该命令:yum update
安装以下几个依赖:
yum install -y readline-devel
yum install -y readline-static

使用该命令yum search all zlib,我们可以看到有一个zlib-devel。安装zlib-devel。

=========================== 匹配:zlib ======================
jzlib.noarch : Re-implementation of zlib in pure Java
jzlib-demo.noarch : Examples for jzlib
jzlib-javadoc.noarch : API documentation for jzlib
perl-Compress-Raw-Zlib.i686 : Low-level interface to the zlib compression library
perl-Compress-Raw-Zlib.x86_64 : Low-level interface to the zlib compression library
zlib-devel.i686 : Header files and libraries for Zlib development
zlib-devel.x86_64 : Header files and libraries for Zlib development
zlib-static.i686 : Static libraries for Zlib development
zlib-static.x86_64 : Static libraries for Zlib development
perl-IO-Zlib.noarch : Perl IO:: style interface to Compress::Zlib
zlib.i686 : The compression and decompression library
zlib.x86_64 : The compression and decompression library
genwqe-zlib-devel.i686 : Development files for genwqe-tools
genwqe-zlib-devel.x86_64 : Development files for genwqe-tools
genwqe-zlib-static.i686 : Static library files for genwqe-tools
genwqe-zlib-static.x86_64 : Static library files for genwqe-tools
genwqe-zlib.i686 : GenWQE hardware accelerated libz
genwqe-zlib.x86_64 : GenWQE hardware accelerated libz
libisofs.i686 : Library to create ISO 9660 disk images
libisofs.x86_64 : Library to create ISO 9660 disk images
minizip.i686 : Library for manipulation with .zip archives
minizip.x86_64 : Library for manipulation with .zip archives
minizip-devel.i686 : Development files for the minizip library
minizip-devel.x86_64 : Development files for the minizip library
perl-Archive-Tar.noarch : A module for Perl manipulation of .tar files
perl-IO-Compress.noarch : Read and write compressed data
pigz.i686 : Parallel implementation of gzip
pigz.x86_64 : Parallel implementation of gzip
snappy.i686 : Fast compression and decompression library
snappy.x86_64 : Fast compression and decompression library
zziplib.i686 : Lightweight library to easily extract data from zip files
zziplib.x86_64 : Lightweight library to easily extract data from zip files
zziplib-devel.i686 : Development files for the zziplib library
zziplib-devel.x86_64 : Development files for the zziplib library
zziplib-utils.i686 : Utilities for the zziplib library
zziplib-utils.x86_64 : Utilities for the zziplib library

再执行此命令./configure --prefix=/usr/local/pgsql/postgresql-13.1,正常执行
再执行make,执行成功

All of PostgreSQL successfully made. Ready to install.

有关安装postgre,推荐下面这篇博客的安装教程。写的非常详细。
https://blog.csdn.net/kinshy/article/details/112134102

  • 3
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值