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 Floria, > When I've configured NetCDF-4.3, I tape the " make check install ". Then, > I meet an error : > > ============================================================================ > Testsuite summary for netCDF 4.3.2 > ============================================================================ > # TOTAL: 26 > # PASS: 2 > # SKIP: 0 > # XFAIL: 0 > # FAIL: 24 > # XPASS: 0 > # ERROR: 0 > ============================================================================ > See h5_test/test-suite.log > Please report to address@hidden > ============================================================================ > make[3]: *** [test-suite.log] Error 1 > make[3]: Leaving directory `/home/floria/Softwares/netcdf-4.3.2/h5_test' > make[2]: *** [check-TESTS] Error 2 > make[2]: Leaving directory `/home/floria/Softwares/netcdf-4.3.2/h5_test' > make[1]: *** [check-am] Error 2 > make[1]: Leaving directory `/home/floria/Softwares/netcdf-4.3.2/h5_test' > make: *** [check-recursive] Error 1 > > Then, I find the test-suite.log file in the h5_test folder. The error detail > is like this: > > FAIL: tst_h_files > ================= > > ./tst_h_files: error while loading shared libraries: libhdf5.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_files2 > ================== > > I've set the LD_LIBRARY_BATH with the location of libhdf5.so.8, but the error > is still there. > What should I do now? Make sure you set LD_LIBRARY_PATH to the library directory containing the installed HDF5 library, rather than "LD_LIBRRY_BATH" (which may have been just a typo). You also have to set CPPFLAGS and LDFLAGS before running the configure script. For example, if H5DIR is a shell variable specifying the directory in which bin/, lib/, and include/ directories contain HDF5 installed files, then your configure invocation should have something like: CPPFLAGS="-I${H5DIR}/include" LDFLAGS="-L${H5DIR}/lib" ./configure ... [other configure options] If this works OK, you usually don't need to set LD_LIBRARY_PATH before running make check install, as configure builds the Makefiles to contain that information. --Russ > Thank you very much! > > From: Floria Lee @nscc-tj > > > > > > Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: WUC-414251 Department: Support netCDF Priority: Normal Status: Closed