Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HDF5

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Create an HDF5 installation directory, for example, /path/to/HDF5.
    mkdir -p /path/to/HDF5
  3. Go to the HDF5 installation directory.
    cd /path/to/HDF5
  4. Obtain the HDF5 installation package.
    wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5-	1.10.5.tar.gz --no-check-certificate
  5. Decompress the HDF5 installation package.
    tar -zxvf hdf5-1.10.5.tar.gz
  6. Go to the directory generated after the decompression.
    cd hdf5-1.10.5
  7. Perform the configuration.
    ./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-shared CC=gcc CXX=g++ FC=gfortran F77=gfortran CFLAGS=-fPIC

  8. Perform the compilation and installation.
    make -j

    make install

  9. Verify the installation.
    ls /path/to/HDF5/lib
    ls /path/to/HDF5/bin

    If the following information is displayed, the installation is successful:

  10. Load the environment variables.
    export PATH=/path/to/HDF5/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH