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

Installing PnetCDF

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the PnetCDF installation package:
    tar -xvf parallel-netcdf-1.9.0.tar.bz2
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd parallel-netcdf-1.9.0
  4. Run the following commands to configure the environment before compilation:
    export MPICC=mpicc
    export MPICXX=mpicxx
    export MPIFC=mpifort
  5. Run the following command to perform configuration:
    ./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
  6. Run the following commands to perform compilation and installation:
    make -j 16
    make install