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.
Hello Boris, I cannot say for sure what the problem is without more information about what platform you're on and how you've configured netcdf but I can make a guess. Since the code is compiling properly but failing at runtime, I suspect that your hdf5 libraries are not on your LD_LIBRARY_PATH. If they are in /usr/local/lib, for example, you would want to run 'make check' as follows: $ LD_LIBRARY_PATH=/usr/local/lib make check Let me know if this solves your issue. If not, please send in your 'config.log' generated when you configure netcdf and I will see what we can figure out. Thanks! -Ward > Hi! > > > > I have received the following errors when installing NetCDF4 library: > > > > make check-TESTS > > make[2]: Entering directory `/usr/local/src/netcdf-4.3.1/h5_test' > > ./tst_h_files: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_files > > ./tst_h_files2: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_files2 > > ./tst_h_files4: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_files4 > > ./tst_h_atts: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_atts > > ./tst_h_atts3: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_atts3 > > ./tst_h_atts4: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_atts4 > > ./tst_h_vars: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_vars > > ./tst_h_vars2: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_vars2 > > ./tst_h_vars3: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_vars3 > > ./tst_h_grps: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_grps > > ./tst_h_compounds: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_compounds > > ./tst_h_compounds2: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_compounds2 > > ./tst_h_wrt_cmp: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_wrt_cmp > > ./tst_h_rd_cmp: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_rd_cmp > > ./tst_h_vl: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_vl > > ./tst_h_opaques: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_opaques > > ./tst_h_strings: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_strings > > ./tst_h_strings1: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_strings1 > > ./tst_h_strings2: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_strings2 > > ./tst_h_ints: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_ints > > ./tst_h_dimscales: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_dimscales > > ./tst_h_dimscales1: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_dimscales1 > > ./tst_h_dimscales2: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_dimscales2 > > ./tst_h_dimscales3: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_dimscales3 > > ./tst_h_enums: error while loading shared libraries: libhdf5_hl.so.8: cannot > open shared object file: No such file or directory > > FAIL: tst_h_enums > > ./tst_h_dimscales4: error while loading shared libraries: libhdf5_hl.so.8: > cannot open shared object file: No such file or directory > > FAIL: tst_h_dimscales4 > > ================================================ > > 26 of 26 tests failed > > Please report to address@hidden > > ================================================ > > make[2]: *** [check-TESTS] Error 1 > > make[2]: Leaving directory `/usr/local/src/netcdf-4.3.1/h5_test' > > make[1]: *** [check-am] Error 2 > > make[1]: Leaving directory `/usr/local/src/netcdf-4.3.1/h5_test' > > make: *** [check-recursive] Error 1 > > > > --------------------- > > What is the problem? > > > > Thanks and best regards, > > Boris > > > Ticket Details =================== Ticket ID: ETM-613344 Department: Support netCDF Priority: Normal Status: Closed