tar -zxvf netcdf-c-4.7.0.tar.gz
cd netcdf-c-4.7.0
./configure --prefix=/path/to/NETCDF LDFLAGS="-L/path/to/HDF5/lib" CPPFLAGS="-I/path/to/HDF5/include" CC=mpicc --disable-dap FC=mpif90 CXX=mpicxx
make make install
export PATH=/path/to/NETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/NETCDF/lib:$LD_LIBRARY_PATH export NETCDF=/path/to/NETCDF