Follow the steps below to build HDF5. See the HDF5 installation home page for complete installation instructions. To build HDF5:
Change the working directory to the HDF5 directory:
cd path-to/hdf5-1.6.3
Set compiler environment variables, for example,
For an sh-type shell:
CC=gcc CXX=g++ export CC CXX
For an csh-type shell:
setenv CC gcc setenv CXX g++
Configure HDF5:
./configure --enable-threadsafe --with-pthread=/usr --prefix=/usr/local/hdf5
This will install HDF5 binaries, libraries, header files,
and tools in /usr/local/hdf5.
Build HDF5:
make all
Become root user and install HDF5:
su - make install
Leave the root account by typing exit.