Search code examples
windowsdllcygwincdo-climate

Problem with cygnetcdf-13.dll needed to use new versions of CDO with Cygwin


I have problems with the use of newest version CDO, like CDO-1.9.7.1. This appears when I try tu use any CDO operator with Cygwin in windows 10: "error while loading shared libraries: cygnetcdf-13.dll: cannot open shared object file: No such file or directory"

I have no problems with older versions of CDO (<= CDO-1.9.5).

Does anyone knows how to fix it and use the new versions of CDO in windows 10 with Cygwin, or other shell option in Windows?

Thank you very much!


Solution

  • Use cygcheck to find the proper package:

    $ cygcheck -p cygnetcdf-13.dll
    Found 4 matches for cygnetcdf-13.dll
    libnetcdf13-4.6.0-1 - libnetcdf13: NetCDF (network Common Data Form)
    libnetcdf13-4.6.1-1 - libnetcdf13: NetCDF (network Common Data Form)
    libnetcdf13-4.6.1-2 - libnetcdf13: NetCDF (network Common Data Form)
    netcdf-debuginfo-4.6.1-2 - netcdf-debuginfo: Debug info for netcdf
    

    so you need to install the libnetcdf13 package.

    If you need to look which programs are needed for it, there is a proper line in

    https://cygwin.com/packages/summary/libnetcdf13.html

    depends: cygwin, libcurl4, libgcc1 (x86), libhdf5_101, libhdf5hl_100