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

[netCDF #ADU-511334]: configure error



You will need to set the LDFLAGS environment variable at the same time
as you set CPPFLAGS. It probably should look something like this:
    LDFLAGS="-L${HDF5}/lib -lhdf5 -lhdf5_hl"
LD_LIBRARY_PATHS is used only at runtime, not compile time.

> Full Name: Mike Zhao
> Email Address: address@hidden
> Organization: SSAI
> Package Version: netcdf-4.6.1
> Operating System: ubuntu 12.04LTS
> Hardware:
> Description of problem: Trying to install netcdf4.6.1 on ubuntu 12.04
> 
> Has installed the required zlib and hdf5 (the hdf5 is install at 
> /home/mzhao/local/hdf5 and set H5DIR=/home/mzhao/local/hdf5).
> Before install netcdf, I did add ${H5DIR}/lib to the LD_LIBRARY_PATH 
> environment using export 
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mzhao/local/hdf5/lib
> and CPPFLAGS=-I${H5DIR}/include LDFLAGS=-L${H5DIR}/lib
> However, after configure, it has error message:"configure: error: Can't find 
> or link to the hdf5 library. Use --disable-netcdf-4, or see config.log for 
> errors."
> 
> The config.log file is attached for your reference.
> 
> Thanks so much for your help!
> 
> Mike
> 
> 
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: ADU-511334
Department: Support netCDF
Priority: Normal
Status: Open
===================
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.



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.