NSF Unidata

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

[netCDF #WBE-329560]: Trouble compiling netcdf

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 Daniel,

Please make sure you were not running "make check" as root, because in
that case the LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH for OSX) would not be
inherited by a subshell, so would not be used to search for installed
libraries.

If that's not the problem, please provide the config.log generated when 
you ran the netCDF-C configure script and also the output from "make check". 

Thanks,
--Russ

> I am trying to compile and install netcdf with hd5 support to be used with
> ESMF but I'm getting the following error log.  The issue seems to be that
> it can't find the libhdf5 shared library but I've linked the libraries in
> (see excerpt from config compiling options).  I've tried installing zlib
> and hd5 to both /usr/local and /home/dan15lw/local and the files are
> there.  I've also tried adding /usr/local/lib to the environment path.
> What am I doing wrong?  I've followed the instructions to a t several times.
> 
> # Compiling Options
> -----------------
> C Compiler: /usr/bin/gcc
> CFLAGS: -g -O2
> CPPFLAGS: -I/home/dan15lw/local/include
> LDFLAGS: -L/home/dan15lw/local/lib
> 
> 
> 
> ==============================================
> netCDF 4.3.3-rc2: h5_test/test-suite.log
> ==============================================
> 
> # TOTAL: 26
> # PASS:  2
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  24
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> 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
> ==================
> 
> ./tst_h_files2: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_files4
> ==================
> 
> ./tst_h_files4: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_atts
> ================
> 
> ./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_vars
> ================
> 
> ./tst_h_vars: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_vars2
> =================
> 
> ./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_vars3
> =================
> 
> ./tst_h_vars3: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_grps
> ================
> 
> ./tst_h_grps: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_compounds
> =====================
> 
> ./tst_h_compounds: error while loading shared libraries: libhdf5.so.8:
> cannot open shared object file: No such file or directory
> 
> FAIL: tst_h_compounds2
> ======================
> 
> ./tst_h_compounds2: error while loading shared libraries: libhdf5.so.8:
> cannot open shared object file: No such file or directory
> 
> FAIL: tst_h_wrt_cmp
> ===================
> 
> ./tst_h_wrt_cmp: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_rd_cmp
> ==================
> 
> ./tst_h_rd_cmp: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_vl
> ==============
> 
> ./tst_h_vl: error while loading shared libraries: libhdf5.so.8: cannot open
> shared object file: No such file or directory
> 
> FAIL: tst_h_opaques
> ===================
> 
> ./tst_h_opaques: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_strings
> ===================
> 
> ./tst_h_strings: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_strings1
> ====================
> 
> ./tst_h_strings1: error while loading shared libraries: libhdf5.so.8:
> cannot open shared object file: No such file or directory
> 
> FAIL: tst_h_strings2
> ====================
> 
> ./tst_h_strings2: error while loading shared libraries: libhdf5.so.8:
> cannot open shared object file: No such file or directory
> 
> FAIL: tst_h_ints
> ================
> 
> ./tst_h_ints: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_dimscales
> =====================
> 
> ./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_dimscales1
> ======================
> 
> ./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_dimscales2
> ======================
> 
> ./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_dimscales3
> ======================
> 
> ./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_enums
> =================
> 
> ./tst_h_enums: error while loading shared libraries: libhdf5.so.8: cannot
> open shared object file: No such file or directory
> 
> FAIL: tst_h_dimscales4
> ======================
> 
> ./tst_h_dimscales4: error while loading shared libraries: libhdf5_hl.so.8:
> cannot open shared object file: No such file or directory
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: WBE-329560
Department: Support netCDF
Priority: Normal
Status: Closed