mkdir -p /path/to/HDF5
cd /path/to/HDF5
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.5/src/hdf5- 1.10.5.tar.gz --no-check-certificate
tar -zxvf hdf5-1.10.5.tar.gz
cd hdf5-1.10.5
./configure --prefix=/path/to/HDF5 --build=aarch64-unknown-linux-gnu --enable-fortran --enable-static=yes --enable-shared CC=gcc CXX=g++ FC=gfortran F77=gfortran CFLAGS=-fPIC
make -j
make install
ls /path/to/HDF5/lib ls /path/to/HDF5/bin
回显信息显示如下内容,表示安装成功。
export PATH=/path/to/HDF5/bin:$PATH export LD_LIBRARY_PATH=/path/to/HDF5/lib:$LD_LIBRARY_PATH