Installing HDF5
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the HDF5 installation package.
tar -xvf hdf5-1.10.5.tar.gz
- Go to the directory generated after the decompression.
cd hdf5-1.10.5
- 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
- Modify the libtool file in the current folder.
- Perform the compilation and installation.
make make install
- Set the HDF5 environment variables.
export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH export HDF5=/path/to/HDF5
Parent topic: Configuring the Compilation Environment
