一、下载HDF5:wget https://support.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.10.4.tar.gz
二、解压:tar -zxvf hdf5-1.10.4.tar.gz
三、./configure --prefix=/usr/local/hdf/hdf5
四、
make
make check # run test suite
make install
make check-install # verify installation.
五、安装成功后我们运行一个实例来进行测试
程序安装到/usr/local/hdf/hdf5文件下
进入/usr/local/hdf/hdf5/share/hdf5_examples/c文件内
执行