Linux系统:
1.下载hdf5-1.8.15.tar.gz
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.15/src/
2. 解压缩:
直接用tar -zxvf报错,参考https://blog.youkuaiyun.com/huhang600/article/details/50274693的解决方法,如下,
gzip -d xxxx.tar.gz (对于.tar.gz文件的处理方式)
tar -xf xxxx.tar (对于.tar文件处理方式)
3. 运行如下命令:
$ ./configure --prefix=/usr/local/hdf5
$ make
$ make check # run test suite.
$ make install
$ make check-install # verify installation.
./configure --prefix=/usr/local/hdf5
./configure --prefix=/usr/local/hdf5 --enable-cxx
CC=mpicc ./configure --prefix=/usr/local/hdf5 --enable-parallel
在这里插入图片描述
make安装成功;
make check报错:
CC=mpicc ./configure --prefix=/usr/local/hdf5 --enable-parallel --enable-cxx --enable-unsupported(该项用于忽略parallel和cxx的冲突)
make后报错,找不到mpi.h
- 修改环境变量PATH
a. P A T H = " PATH=" PATH=