tar -xvf hdf5-1.10.5.tar.gz
cd hdf5-1.10.5
CC=mpicc CXX=mpicxx FC=mpifort F77=mpif77 CFLAGS="-fPIC -DPIC" FCFLAGS="-fPIC -DPIC" FFLAGS="-fPIC" \./configure --prefix=/path/to/SMOKE/HDF5 --enable-shared --enable-fortran --enable-static --enable-parallel
vi libtool
wl='-Wl,'
执行5.a之后,按“Esc”键,输入“:set nu”,按“Enter”即可显示出行号。
make make install
export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH export HDF5=/path/to/HDF5