我要评分
获取效率
正确性
完整性
易理解

Error Reported During Software Building

Symptom

If an error similar to the following is reported during the installation, add the NetCDF installation path to the specified file based on the error message.

Key Process and Cause Analysis

The NetCDF installation path is not added to the specified file.

Conclusion and Solution

  1. Modify the CmakeCache.txt file.
    1. Open the CmakeCache.txt file.

      vi /path/to/NCEPLIBS/NCEPLIBS1.3.0/build/w3emc/src/w3emc-build/CmakeCache.txt

    2. Press i to enter the insert mode and modify the file as follows:
      Before the modification:
      //NetCDF C include directory
      NetCDF_C_INCLUDE_FILE:FILEPATH=NetCDF_C_INCLUDE_FILE-NOTFOUND

      After the modification:

      //NetCDF C include directory
      NetCDF_C_INCLUDE_FILE:FILEPATH=/path/to/NETCDF/include
    3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  2. Run the following command to build the software. If a similar error occurs, perform the previous steps to rectify the error.

    make -j 16