Skip to content

ncf-c version error #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
VictorEijkhout opened this issue Dec 10, 2023 · 4 comments
Open

ncf-c version error #426

VictorEijkhout opened this issue Dec 10, 2023 · 4 comments

Comments

@VictorEijkhout
Copy link

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.

@jshn9515
Copy link

Probably you can look at this issue: #299

@scotty110
Copy link

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.

@mredenti
Copy link

@scotty110 Did you solve the issue, I have the same problem

@Xenotech81
Copy link

Xenotech81 commented Mar 24, 2025

This breaks the build in case the totally optional SZIP support was not included in HDF5 build. Bummer that this check (if (NOT HAVE_DEF_VAR_SZIP)) was introduced during a minor update of NetCDF4-fortran to 4.5.3 , downgrading NetCDF4-fortran to 4.5.2 might avoid this problem (yet, there is another issue #212)

Ok sorry, this way is blocked by #203 , which I get also for gfortran 11.4.0

If you need the newest versions, I have not tried it, but this post has installation instructions for the full chain SZIP, HDF5, NetCDF4-C, NetCDF4-fortran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants