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

安装pnetcdf

操作步骤

  1. 执行以下命令下载安装包。
    cd /path/to
    wget http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/pnetcdf-1.11.2.tar.gz
    tar xf pnetcdf-1.11.2.tar.gz
  2. 执行以下命令进入源码目录并安装
    cd pnetcdf-1.11.2
    CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif90 ./configure --prefix=/path/to/pnetcdf --enable-shared --enable-fortran --enable-large-file-test
    make -j 64
    make install
  3. 执行以下命令设置环境变量
    export PATH=/path/to/pnetcdf/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/pnetcdf/lib:$LD_LIBRARY_PATH
    export INCLUDE=/path/to/pnetcdf/include:$INCLUDE