请注意:NCL-6.6.2版本使用的HDF5版本应为1.10.x。
mkdir -p /path/to/hdf5
cd /path/to/hdf5
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1.tar.gz
tar -zxvf hdf5-1.10.1.tar.gz
cd hdf5-1.10.1
export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif90 ./configure --prefix=/path/to/hdf5 --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" --build=aarch64-unknown-linux-gnu
sed -i '11835c wl="-Wl,"' libtool
make -j 8
make install
export PATH=/path/to/hdf5/bin:$PATH export LD_LIBRARY_PATH=/path/to/hdf5/lib:$LD_LIBRARY_PATH export INCLUDE=/path/to/hdf5/include:$INCLUDE