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.1.tar.gz
- Go to the directory generated after the decompression.
cd hdf5-1.10.1
- Perform the configuration.
./configure --prefix=/path/to/HDF5 --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-conversion" FCFLAGS="-O3 -fPIC" LDFLAGS="-Wl,--build-id" --enable-fortran --enable-parallel CC=mpicc FC=mpif90 CXX=mpicxx
If the server has multiple MPIs, CC, FC, and CXX in the preceding command can be represented using absolute paths.
- Modify the libtool file in the current folder.
- Perform the compilation and installation.
make -j 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