中文
注册
我要评分
文档获取效率
文档正确性
内容完整性
文档易理解
在线提单
论坛求助

安装hdf5

操作步骤

  1. 执行以下命令下载安装包。
    cd /path/to
    wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.1/src/hdf5-1.10.1.tar.gz
    tar xf hdf5-1.10.1.tar.gz
  2. 执行以下命令进入源码目录并安装。
    cd hdf5-1.10.1
    CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif90  ./configure --prefix=/path/to/hdf5 --enable-fortran --enable-static=yes --enable-parallel --enable-shared CFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" FCFLAGS="-O3 -fPIC" LDFLAGS="-Wl,--build-id"
    sed -i '11835c wl="-Wl,"' libtool
    make -j 64
    make install
  3. 执行以下命令设置环境变量。
    export PATH=/path/to/hdf5/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/hdf5/lib:$LD_LIBRARY_PATH
    export INCLUDE=/path/to/hdf5/include:$INCLUDE