./configure --prefix=/usr/local/pgsql
.....
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.
apt-getinstallzlib1g-dev
或
apt-cachesearchzlibdev
参考:http://ubuntuforums.org/showthread.PHP?t=692704
原文链接:https://www.f2er.com/postgresql/196003.html