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

  • To: brick <brickflying@xxxxxxxxx>
  • Subject: Re: [netcdfgroup] Error "Can't find or link to the hdf5 library" with --with-hdf5=$PRO_PATH/Hdf5-1.8.7
  • From: Ed Hartnett <ed@xxxxxxxxxxxxxxxx>
  • Date: Thu, 22 Sep 2011 05:38:34 -0600
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



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