执行./configure: 报configure: error: *** zlib.h missing - please install first or check config.log 报错解决

configure: error: *** zlib.h missing - please install first or check config.log ***

原因是缺少 zlib

有yum源的直接执行

# yum -y install zlib zlib-devel

没有yum源的可以直接在网上下载zlib的压缩包

# tar zxf zlib***.tar.gz
# cd zlib-***/
# ./configure
# make test
# make install
# make clean
# ./configure --shared
# make test
# make install
# cp zutil.h /usr/local/include/
# cp zutil.c /usr/local/include/

再次执行./configure 就没有问题了

你可能感兴趣的:(报错,linux,centos,运维,服务器)