Installing HDF5
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the HDF5 installation package.
tar -xvf hdf5-1.12.0.tar.gz
- Go to the directory generated after the decompression.
cd hdf5-1.12.0
- 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-null-conversion" FCFLAGS="-O3 -fPIC" LDFLAGS="-Wl,--build-id" CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort F90=mpifort --with-zlib=/path/to/ZLIB --with-szlib=/path/to/SZIP
- Modify the libtool file.
- Perform the compilation and installation.
make -j 64 make install
- Load the environment variables.
export PATH=/path/to/HDF5/bin:$PATH export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment
