Installing PnetCDF
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to install PnetCDF.
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 tar -xvf parallel-netcdf-1.9.0.tar.bz2 cd parallel-netcdf-1.9.0 mkdir -p /path/to/PNETCDF ./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 make -j 16 make install
If the environment variables of the compiler and MPI have been declared, skip the first two commands for declaring environment variables in this step.
- Run the following commands to check whether PnetCDF is successfully installed.
cd /path/to/PNETCDF ls lib
If the following information is displayed, the installation is successful.

Parent topic: Configuring the Compilation Environment