PGI Guide to ZLIB

This guide is intended to help build the ZLIB package for Linux using PGI 2012 compilers.

Version Information

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.

Application Notes

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. "

Obtaining the Source Code

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

Building, Testing and Installing ZLIB

  1. Untar the ZLIB package:

      tar -xvzf zlib-1.2.7.tar.gz
      cd zlib-1.2.7
  2. Configure ZLIB:

      env CC=pgcc ./configure --prefix=/usr/local
  3. Build the code:

      make >& make.log
      make check >& make_check.log
  4. Finally, install the results.

      sudo make install

Known Issues and Limitations


Click me