Rate This Document
Findability
Accuracy
Completeness
Readability

Error "F90-S-0017-Unable to open include file: netcdf.inc" Reported When Compiling the wrf_io Module

Symptom

During the NCEPLIBS compilation and installation, the wrf_io module reports the following error:

Key Process and Cause Analysis

None

Conclusion and Solution

  1. Modify the /wrf_io.dir/build.make file.
    1. Open the /wrf_io.dir/build.make file.
      vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/build/CMakeFiles/wrf_io.dir/build.make
    2. Press i to enter the edit mode and modify the content in line 115.
      cd /path/to/NCEPLIBS/NCEPLIBS-1.2.0/build/wrf_io/src/wrf_io-build && sed -i "s/isystem/I/g" `grep -rl "isystem"` && $(MAKE)

      After performing 1.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Perform the compilation again.
    make