Error "Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)" Reported When Compiling the w3emc Module
Symptom
During the NCEPLIBS compilation and installation, the w3emc module reports the following error:

Key Process and Cause Analysis
The NetCDF installation path is not added to the used file.
Conclusion and Solution
- Modify the CMakeCache.txt file.
- Open the CMakeCache.txt file.
vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/build/w3emc/src/w3emc-build/CMakeCache.txt
- Press i to enter the edit mode and modify the file as follows:
//NetCDF Include directory paths NetCDF_INCLUDE_DIRS:STRING=/path/to/NETCDF/include
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the CMakeCache.txt file.
- Perform the compilation again.
make
Parent topic: Troubleshooting