This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi > I am having problem in configuring the netCDF. Appended below are the > details, please help to sort out the problem-- > > 1. the exact version of netCDF-4.0.1 A later version of netCDF is available, version 4.1.1 from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz but that may not be relevant to solving the problem you are having, which is inability to find the HDF5 library, a prerequisite if you want to build netCDF-4 rather than netCDF-3. > 2. the *complete* output of "./configure", and "make" > > [root@localhost netcdf]# ./configure --prefix=/usr/local --enable-netcdf-4 > --with-hdf5=/usr/local --with-zlib=/usr/local > configure: netCDF 4.0.1 > checking build system type... i686-pc-linux-gnu ... > checking hdf5.h usability... no > checking hdf5.h presence... no > checking for hdf5.h... no > checking for H5Fflush in -lhdf5... no > configure: error: Can't find the hdf5 header and/or library, or can't link a > program to it. HDF5 must be built with zlib; the location of zlib must > be specified for netCDF-4 with the --with-zlib option. If HDF5 was > also built with szlib, then the location of szlib must also be > specified with the --with-slib option. The above is probably due to not installing HDF5 before trying to build netCDF-4 with --enable-netcdf-4 specified. You can still build netCDF-3, which is adequate for many purposes, if you don't specify --enable-netcdf-4 to the configure script before building. If you need the feateures of netCDF-4, such as compression or the enhanced data model, then you will need to install HDF5 first, according to the installation instructions here: http://www.unidata.ucar.edu/netcdf/docs/netcdf-install.html#Quick-Instructions --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: UJV-294134 Department: Support netCDF Priority: Normal Status: Closed