To install netcdf on Ubuntu, I first had to install curl and then update the versioning in this script. Related, in the latest version update, I had to make a tweak to the script based on the filename and unzipped folder, which now differ.
To install netcdf on Cygwin, I searched in the full list of packages upon setup and chose the latest versions of all available packages.