编译GDAL2.4.1时可能会包缺少该文件,放到$GDAL2.4.1\frmts\netcdf下再次运行make即可附上免费地址https://www.unidata.ucar.edu/software/netcdf/docs/netcdf_8h_source.html