suse linux 安装httpd 出现zlib library... not found

本人参照 linux环境apache安装教程安装 httpd执行命令:
./configure --prefix=/opt/web/apache --enable-proxy=shared --enable-proxy-balancer=shared --enable-proxy-http=shared --enable-proxy-connect=shared --enable-asis=shared --enable-isapi=shared --enable-mods-shared=all --enable-so -with-z=/usr/local/zlib/zlib1.2.8/lib

发生如下错误:
checking whether to enable mod_deflate... checking dependencies
adding "-I/usr/local/zlib/zlib1.2.8/lib/include" to INCLUDES
adding "-L/usr/local/zlib/zlib1.2.8/lib/lib" to LDFLAGS
adding "-lz" to LIBS
checking for zlib library... not found
removed "-lz" from LIBS
checking whether to enable mod_deflate... configure: error: mod_deflate has been requested but can not be built due to prerequisite failures

求各位大神指教..

yum install zlib-devel;

如果还提示无法找到,则你还要配置configure,让它找到你安装的zlib路径.