[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #WUC-414251]: help



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


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.