Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HDF5

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to load the compiler and Open MPI:
    export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH
    export  LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
  3. Run the following command to decompress the HDF5 installation package:
    tar zxvf hdf5-1.10.5.tar.gz
  4. Run the following command to switch to the directory generated after decompression:
    cd hdf5-1.10.1
  5. Run the following commands to perform configuration:
    export MPICC=mpicc
    export MPICXX=mpicxx
    export MPIFC=mpifort
    ./configure --prefix=$HDF5 --enable-fortran --enable-static=yes --enable-parallel --enable-shared CC=$MPICC CXX=$MPICXX FC=$MPIFC F77=$MPIFC
  6. Run the following commands to perform compilation and installation:
    make -j 16
    make install
  7. Run the following commands to load environment variables:
    export PATH=/path/to/HDF5/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH