This guide was created for ZLIB release 1.2.7 compiled using the PGI 2012 compilers. This information is for both x64 processors running 64-bit Linux and x86 processors running 32 bit Linux.
Information about ZLIB can be found on the ZLIB website. From the ZLIB home page:
"ZLIB - A Massively Spiffy Yet Delicately Unobtrusive Compression Library.ZLIB is not related to the Linux zlibc Compressing File-I/O Library. "
The ZLIB source code is available from the ZLIB website referenced above. You may want to check there for recent updates.
ZLIB can be used as a compression component in HDF5
Untar the ZLIB package:
tar -xvzf zlib-1.2.7.tar.gz cd zlib-1.2.7
Configure ZLIB:
env CC=pgcc ./configure --prefix=/usr/local
Build the code:
make >& make.log make check >& make_check.log
Finally, install the results.
sudo make install
none