ubuntu版本:16.04.2 64位
从HDF官网(https://support.hdfgroup.org/HDF5/)上下载hdf5-1.8.17.tar.gz
简要安装步骤如下:(详细步骤:hdf5-1.8.17/release_docs/INSTALL)
$ gunzip < hdf5-X.Y.Z.tar.gz | tar xf - #解压缩
$ cd hdf5-X.Y.Z
$ ./configure --prefix=/usr/local/hdf5 #安装路径
$ make
$ make check # run test suite.
$ make install
$ make check-install # verify installation.
注:X.Y.Z是HDF版本
安装成功后,在安装目录/usr/local下出现hdf5文件夹,打开后
在/share/hdf5_examples/下是示例程序。打开c文件夹,下面我们来测试。该文件夹下有个名为run-c-ex.sh文件,