下载地址:https://github.com/Unidata/netcdf-c/archive/refs/tags/v4.7.4.tar.gz
cd /path/to/download/netcdf-c
tar -zxvf netcdf-c-4.7.4.tar.gz
cd netcdf-c-4.7.4
./configure --prefix=/path/to/install/NETCDF --build=aarch64-unknown-linux-gnu --enable-shared --enable-netcdf-4 --enable-dap --with-pic --disable-doxygen --enable-static --enable-pnetcdf --enable-largefile CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort CPPFLAGS="-I/path/to/install/HDF5/include -I/path/to/install/PNETCDF/include" LDFLAGS="-L/path/to/install/HDF5/lib -L/path/to/install/PNETCDF/lib -Wl,-rpath=/path/to/install/HDF5/lib -Wl,-rpath=/path/to/install/PNETCDF/lib" CFLAGS="-L/path/to/install/HDF5/lib -L/path/to/install/PNETCDF/lib -I/path/to/install/HDF5/include -I/path/to/install/PNETCDF/include"
make -j 16 make install
export PATH=/path/to/install/NETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/install/NETCDF/lib:$LD_LIBRARY_PATH