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

[netCDF #QKR-443988]: Help to netcdf-c compilation



Hi Olivier,

> I try to compile netcdf-c.
> Here are the command:
> 
> DIR1=/home/ald_op/utilities/netcdf-c
> DIR2=/home/ald_op/utilities
> export LDFLAGS="-L${DIR2}/zlib/lib -L${DIR2}/szip/lib -L${DIR2}/hdf5/lib 
> -L${DIR2}/curl/lib"
> export CPPFLAGS="-I${DIR2}/zlib/include -I${DIR2}/szip/include 
> -I${DIR2}/hdf5/include -I${DIR2}/curl/include" ./configure --prefix=${DIR1} 
> --enable-static=no
> I have the following error message:
> configure: error: Can't find or link to the hdf5 library. Use 
> --disable-netcdf-4, or see config.log for errors.
> 
> I put the config.log in attachment

It looks like your HDF5 library is installed as a static rather than shared 
library, and it needs "-ldl" to find the dynamic linking loader functions.

You could define LIBS=-ldl before running configure to see if that solves
the problem.

Another possible solution is to build and install the HDF5 library as a shared
library, rather than just a static library.

Please let us know if one or the other of these solutions don't work.

--Russ



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



Ticket Details
===================
Ticket ID: QKR-443988
Department: Support netCDF
Priority: Normal
Status: Closed