我要评分
获取效率
正确性
完整性
易理解

Installing PnetCDF

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to install PnetCDF:
    tar -xvf parallel-netcdf-1.9.0.tar.bz2
    cd parallel-netcdf-1.9.0
    export MPICC=`which mpicc`
    export MPICXX=`which mpicxx`
    export MPIFC=`which mpifort`
    ./configure --prefix=/path/to/PNETCDF --build=aarch64-unknown-linux-gnu CFLAGS="-fPIC -DPIC" CXXFLAGS="-fPIC -DPIC" FCFLAGS="-fPIC" FFLAGS="-fPIC" CC=$MPICC CXX=$MPICXX FC=$MPIFC F77=$MPIFC
    make -j 16
    make install
  3. Run the following commands to load environment variables:
    export PATH=/path/to/PNETCDF/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/PNETCDF/lib:$LD_LIBRARY_PATH