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 -xvf hdf5-1.10.5.tar.gz
  3. Go to the directory generated after the decompression.
    cd hdf5-1.10.5
  4. Perform the configuration.
    CC=mpicc CXX=mpicxx FC=mpifort F77=mpif77 CFLAGS="-fPIC -DPIC" FCFLAGS="-fPIC -DPIC" FFLAGS="-fPIC" \./configure --prefix=/path/to/SMOKE/HDF5 --enable-shared --enable-fortran --enable-static --enable-parallel
  5. Modify the libtool file in the current folder.
    1. Open the libtool file.
      vi libtool
    2. Press i to enter the edit mode and modify line 11835 in the libtool file.
      wl='-Wl,'

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Perform the compilation and installation.
    make
    make install
  7. Set the HDF5 environment variables.
    export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH
    export HDF5=/path/to/HDF5