Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HDF5

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Download the HDF5 installation package.
    cd /path/to/hdf5
    wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1.tar.gz
  3. Decompress the HDF5 installation package.
    tar xvf hdf5-1.10.1.tar.gz
  4. Go to the directory generated after the decompression.
    cd hdf5-1.10.1
  5. Compile and install HDF5.
    export CC=mpicc CXX=mpicxx FC=mpifort
    ./configure --prefix=/path/to/hdf5 --build=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared CFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" FCFLAGS="-O3 -fPIC" LDFLAGS="-Wl,--build-id"
    sed -i '11835c wl="-Wl,"' libtool
    make -j
    make install