Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [netcdfgroup] Error "Can't find or link to the hdf5 library" with --with-hdf5=$PRO_PATH/Hdf5-1.8.7

Hi Ed,

Can I ask why the option exists if it shouldn't be used?  Is it going to go 
away in the future or will it be fixed.  I have used --with-FOO in preference 
to setting the environment under the assumption that it is more robust and I 
think that's a reasonable assumption.

Thanks,
Stephen.

---
Stephen Pascoe  +44 (0)1235 445980
Centre of Environmental Data Archival
STFC Rutherford Appleton Laboratory, Harwell Oxford, Didcot OX11 0QX, UK


-----Original Message-----
From: netcdfgroup-bounces@xxxxxxxxxxxxxxxx 
[mailto:netcdfgroup-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Ed Hartnett
Sent: 22 September 2011 12:39
To: brick
Cc: netcdfgroup@xxxxxxxxxxxxxxxx
Subject: Re: [netcdfgroup] Error "Can't find or link to the hdf5 library" with 
--with-hdf5=$PRO_PATH/Hdf5-1.8.7


Howdy all!

The --with-hdf5= parameter to configure is not the correct way to tell
netCDF where the HDF5 library is.

Instead, set environmental variables CPPFLAGS and LDFLAGS, like this:

export CPPFLAGS=-I$PRO_PATH/Hdf5-1.8.7/include
export LDFLAGS=-L$PRO_PATH/Hdf5-1.8.7/lib
export LD_LIBRARY_PATH=$PRO_PATH/Hdf5-1.8.7/lib

THen run configure. Don't forget to do a make distclean first.

Good luck.

Ed
-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx

_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit: 
http://www.unidata.ucar.edu/mailing_lists/ 
--
Scanned by iCritical.



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: