tar -xvf parallel-netcdf-1.9.0.tar.bz2 cd parallel-netcdf-1.9.0 export MPICC=`which mpicc` export MPICXX=`which mpicxx` export MPIFC=`which mpifort` ./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 make -j 16 make install
export PATH=/path/to/PNETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/PNETCDF/lib:$LD_LIBRARY_PATH