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.
> Howdy, Experts. > I grabbed the latest 4.1.2 tarball and tried to build with my standard > configure options (these have worked for me for all build up to now): > > ./configure --disable-f77 --enable-dap --enable-netcdf-4 --disable- > shared \ > --prefix=/Users/jma/supplibs/src/netcdf \ > --with-hdf5=/Users/jma/supplibs/src/hdf5 \ > --with-zlib=/Users/jma/supplibs/src/zlib \ > --with-szlib=/Users/jma/supplibs/src/szip \ > --with-curl=/Users/jma/supplibs/src/curl > > The only thing I added for this new release was the "--disable-shared" > option, since I only want the static library. The configure script > halted with this message: > > ...checking whether we should try to build netCDF-4... yes > checking for deflate in -lz... yes > checking for H5Fflush in -lhdf5... no > configure: error: Can't find or link to the hdf5 library. Configure > with --with-hdf5, or use --disable-netcdf-4, or see config.log > for errors. > > Howdy Jennifer! Try setting LIBS=-lsz before running configure. Thanks, Ed Ticket Details =================== Ticket ID: ITF-941422 Department: Support netCDF Priority: Normal Status: Closed