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

[netCDF #IYA-535944]: build troubles



Hello,

This seems like an odd error, as you're following the directions so far.  The 
variables do seem to be set correctly.  What happens if you do an 'ls 
${H5DIR}/lib', what are the contents listed?  If there is a 'libhdf5.settings' 
file, can you provide that?

Thanks!

-Ward

> Hello,
> I'm working to build the netCDF libraries as directed here:
> https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html
> 
> i've gotten through zlib and hdf5 successfully. I don't think i'll need DAP
> so i didn't bother with Curl.
> i've gotten to the line
> 
> $ CPPFLAGS='-I${H5DIR}/include -I${ZDIR}/include' LDFLAGS='-L${H5DIR}/lib
> -L${ZDIR}/lib' ./configure --prefix=${NCDIR} --disable-dap
> which throws the configure: error: Can't find or link to the hdf5 library.
> Use --disable-netcdf-4, or see config.log for errors.
> 
> i've set the LD_Library_PATH
> LD_LIBRARY_PATH=${H5DIR}/lib
> (base) [spike@cloudbreak netcdf-c-4.7.3]$ echo $LD_LIBRARY_PATH
> /usr/local/HDF5/lib
> 
> the HDF/include is included in the CPPFLAGS (which i assume is correct)
> (base) [spike@cloudbreak netcdf-c-4.7.3]$ echo ${H5DIR}/include
> /usr/local/HDF5/include
> (base) [spike@cloudbreak netcdf-c-4.7.3]$ ls ${H5DIR}/include
> H5ACpublic.h  H5Cpublic.h   H5DSpublic.h  H5FDcore.h    H5FDhdfs.h
> H5FDmpio.h    H5FDros3.h   H5FDwindows.h  H5IMpublic.h  H5Lpublic.h
> H5Opublic.h   H5PLpublic.h  H5pubconf.h  H5Spublic.h   H5version.h
> hdf5_hl.h
> H5api_adpt.h  H5DOpublic.h  H5Epubgen.h   H5FDdirect.h  H5FDlog.h
> H5FDmulti.h   H5FDsec2.h   H5Fpublic.h    H5Ipublic.h   H5LTpublic.h
> H5overflow.h  H5Ppublic.h   H5public.h   H5TBpublic.h  H5Zpublic.h
> H5Apublic.h   H5Dpublic.h   H5Epublic.h   H5FDfamily.h  H5FDmpi.h
> H5FDpublic.h  H5FDstdio.h  H5Gpublic.h    H5LDpublic.h  H5MMpublic.h
> H5PLextern.h  H5PTpublic.h  H5Rpublic.h  H5Tpublic.h   hdf5.h
> 
> I run:
> CPPFLAGS='-I${H5DIR}/include -I${ZDIR}/include' LDFLAGS='-L${H5DIR}/lib
> -L${ZDIR}/lib' ./configure --prefix=${NCDIR} --disable-dap
> 
> ...again throws error: configure: error: Can't find or link to the hdf5
> library. Use --disable-netcdf-4, or see config.log for errors.
> 
> from:
> https://www.unidata.ucar.edu/support/help/MailArchives/netcdf/msg13261.html
> i should see values in the config.log file (attached) if i had the same
> problem, but since they're set, i don't think i'm seeing the same problems.
> ac_cv_env_CPPFLAGS_set=set
> ac_cv_env_CPPFLAGS_value='-I${H5DIR}/include -I${ZDIR}/include'
> 
> ac_cv_env_LDFLAGS_set=set
> ac_cv_env_LDFLAGS_value='-L${H5DIR}/lib -L${ZDIR}/lib'
> 
> Everything i can find, seems to suggest setting those, which i think i've
> done, so any help would be greatly appreciated!
> 
> spicer
> 

> 


Ticket Details
===================
Ticket ID: IYA-535944
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.