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 decompress the HDF5 installation package:
    tar -xvf hdf5-1.10.5.tar.gz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd hdf5-1.10.1
  4. Run the following command to perform configuration:
    export MPICC=`which mpicc`
    export MPICXX=`which mpicxx`
    export MPIFC=`which mpifort`
    ./configure --prefix=/path/to/HDF5  --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared CC=$MPICC CXX=$MPICXX FC=$MPIFC F77=$MPIFC
  5. Run the following commands to perform compilation and installation:
    make -j 16
    make install
  6. 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