Unidata / netcdf-fortran

Official GitHub repository for netCDF-Fortran libraries, which depend on the netCDF C library. Install the netCDF C library first.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ncf-c version error

VictorEijkhout opened this issue · comments

The message netcdf-c version 4.7.4 or greater is required appears while I have version 4.9.2 loaded.

This message actually seems to come from

CHECK_LIBRARY_EXISTS(${NETCDF_C_LIBRARY} nc_def_var_szip "" HAVE_DEF_VAR_SZIP)
if (NOT HAVE_DEF_VAR_SZIP)
  message(FATAL_ERROR "netcdf-c version 4.7.4 or greater is required")
endif()

which I interpret as szip not having been installed, which actually means that hdf5 is not installed with szip.

If my interpretation is correct, this error message could be substantially improved. If my interpretation is not correct, please explain.

Probably you can look at this issue: #299

Were you able to solve this issue building hdf5 with SZIP support? I am getting the same error, and the linked issue did not solve my problems.