ERROR: /gpfs/alpine/cli138/world-shared/ckuo6/CMAQ/CMAQ-master/lib/x86_64/intel/netcdf/lib/libnetcdf.a does not exist in your CMAQ_LIB directorysource config_cmaq.csh intel! Check your installation before proceeding with CMAQ build.
If you encounter errors about libraries not being found, check the settings of the config_cmaq.csh script variables IOAPI, NETCDF, or MPI to ensure that they correctly point to the locations of these libraries on your Linux system.
But how do I know where the “netCDF C directory path” is ? I have already loaded module “netcdf/4.6.2”.
You are best off if you can build the whole modeling system (libnetcdf.a, libpvm3.a, libioapi.a, and your model(s) CMAQ, SMOKE, etc. with a common compiler set and common set of compile-flags. In particular, Linux-distribution-vendor supplied libnetcdf.a rarely works with CMAS-supported compiler sets.
NetCDF Version 4.1 and later also split the Fortran interfaces into a separate library libnetcdff.a As a result, much compatiblity with the infrastructure (Makefiles, etc.) is broken: you must modify all Makefiles, replacing -lnetcdf with -lnetcdff -lnetcdf …
For netCDF 4.x, the C and Fortran packages are separate download-and-install problems, and create distinct directories for doing so. The C download-package will be named something like netcdf-4.4.tar.gz; the Fortran package netcdf-fortran-4.4.4.tar.gz. When unpacked, configured, and built, they will each have subdirectories under which the include-file are found, and likewise for the library-files. That is what these make-variables are talking about.