This fixed me on CentOS
(some thing i missed out from the guide as i wanted to use the packaged version from within centos)
cd /tmp
wget
http://www.zlib.net/zlib-1.2.3.tar.gz
tar zxvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
nano README
make test
make install