cd /path/to/pnetcdf wget http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/pnetcdf-1.11.2.tar.gz
tar xvf pnetcdf-1.11.2.tar.gz
cd pnetcdf-1.11.2
export CC=mpicc CXX=mpicxx FC=mpifort ./configure --prefix=/path/to/pnetcdf --build=aarch64-linux --enable-shared --enable-fortran --enable-large-file-test make -j make install