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

Installing PnetCDF

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the PnetCDF installation package.
    tar -zxvf pnetcdf-1.11.2.tar.gz
  3. Go to the directory generated after the decompression.
    cd pnetcdf-1.11.2
  4. Perform the configuration.
    CC=mpicc FC=mpifort CXX=mpicxx CFLAGS="$optflags -fPIC" FFLAGS="$optflags -fPIC" FCFLAGS="$optflags -fPIC" LD="$ldflags" ./configure --build=aarch64-linux --prefix=/path/to/PNETCDF --enable-shared --enable-static --enable-fortran --enable-large-file-test

  5. Perform the installation.
    make -j$threads

    make install

  6. Verify the installation.
    ls /path/to/PNETCDF/bin
    ls /path/to/PNETCDF/lib

  7. Load the environment variables.
    export PATH=/path/to/PNETCDF/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/PNETCDF/lib:$LD_LIBRARY_PATH