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

Installing PnetCDF

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the PnetCDF installation package.
    tar xf pnetcdf-1.12.2.tar.gz
  3. Go to the directory generated after the decompression.
    cd pnetcdf-1.12.2
  4. Perform the configuration.
    ./configure --prefix=/path/to/PNETCDF --build=aarch64-unknown-linux-gnu CFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" CXXFLAGS="-O3 -fPIC -Wno-incompatible-pointer-types-discards-qualifiers -Wno-non-literal-null-conversion" FCFLAGS="-O3 -fPIC" FFLAGS="-O3 -fPIC" CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort F90=mpifort
  5. Perform the compilation and installation.
    make -j 64
    make install
  6. Load the PnetCDF environment variables.
    export PATH=/path/to/PNETCDF/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/PNETCDF/lib:$LD_LIBRARY_PATH