Rate This Document
Findability
Accuracy
Completeness
Readability

Installing HDF5

Procedure

  1. Download the HDF5 source package.
  2. Upload the source package to its installation directory on the server, for example, /path/to/download/hdf5.
  3. Go to the source package directory.
    cd /path/to/download/hdf5
  4. Decompress the installation package.
    tar -zxvf hdf5-1.8.20.tar.gz
  5. Switch to the directory of the configure script.
    cd hdf5-1.8.20
  6. Install HDF5.
    ./configure --prefix=/path/to/install/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared  CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort CFLAGS=-fPIC CXXFLAGS=-fPIC FCFLAGS=-fPIC
  7. Modify the libtool file in the current directory.
    vi libtool

    In line 10118, change wl="" to wl="-Wl,".

    In line 10267, change wl="" to wl="-Wl,".

    The line numbers may vary according to each HDF5 version. Search for wl="" to determine the line numbers.

  8. Perform the compilation and installation.
    make -j 16
    make install
  9. Set the environment variables.
    export PATH=/path/to/install/HDF5/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/install/HDF5/lib:$LD_LIBRARY_PATH