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