Installing HDF5
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the HDF5 installation package:
tar -xvf hdf5-1.10.1.tar.gz
- Run the following command to switch to the directory generated after the package is decompressed:
cd hdf5-1.10.1
- Run the following commands to configure the environment before compilation:
export MPICC=mpicc export MPICXX=mpicxx export MPIFC=mpifort
- Run the following command to perform configuration:
./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared CC=$MPICC CXX=$MPICXX FC=$MPIFC F77=$MPIFC
- Run the following commands to perform compilation and installation:
make -j 16 make install
Parent topic: Configuring the Compilation Environment