tar -xvf hdf5-1.10.1.tar.gz
cd hdf5-1.10.1
./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
若服务器含有多种MPI,这里的CC、FC和CXX可以用绝对路径表示。
vi libtool
wl="-Wl,"
执行5.a之后,按“Esc”键,输入“:set nu”,按“Enter”即可显示出行号。
make -j make install
export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH export HDF5=/path/to/HDF5