Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HDF5

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the HDF5 installation package.
    tar zxvf hdf5-1.10.1.tar.gz
  3. Switch to the directory generated after the HDF5 installation package is decompressed.
    cd hdf5-1.10.1
  4. Set environment variables before compilation.
    export MPICC=/path/to/OPENMPI/bin/mpicc
    export MPICXX=/path/to/OPENMPI/bin/mpicxx
    export MPIFC=/path/to/OPENMPI/bin/mpifort
    export CC=$MPICC
    export CXX=$MPICXX
    export FC=$MPIFC
    export F77=$MPIFC
  5. Run the following command to perform the configuration:
    ./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared --enable-fortran20
  6. Run the following commands to compile and install HDF5:
    make -j 16
    make install
  7. Load environment variables.
    export PATH=/path/to/HDF5/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH