Rate This Document
Findability
Accuracy
Completeness
Readability

Installing PnetCDF

  1. Use PuTTY to log in to the server as the root user.
  2. Set the environment variables.
    export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
  3. Decompress the PnetCDF installation package.
    tar -xvf parallel-netcdf-1.11.2.tar.gz
  4. Go to the directory generated after the decompression.
    cd parallel-netcdf-1.11.2
  5. Create a /path/to/PNETCDF directory.
    mkdir -p /path/to/PNETCDF
  6. Perform the 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=mpifort F77=mpifort
  7. Perform the compilation and installation.
    make -j 16
    make install