Installing HDF5
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the HDF5 installation package.
tar zxvf hdf5-1.10.1.tar.gz
- Switch to the directory generated after the HDF5 installation package is decompressed.
cd hdf5-1.10.1
- Set environment variables before compilation.
export MPICC=/path/to/OPENMPI/bin/mpicc export MPICXX=/path/to/OPENMPI/bin/mpicxx export MPIFC=/path/to/OPENMPI/bin/mpifort export CC=$MPICC export CXX=$MPICXX export FC=$MPIFC export F77=$MPIFC
- Run the following command to perform the configuration:
./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-parallel --enable-shared --enable-fortran20
- Run the following commands to compile and install HDF5:
make -j 16 make install
- Load 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