I cannot try it right now, but maybe you can try to fix it by using
configure -prefix=/usr/local LDFLAGS=-L/usr/local/lib CFLAGS="-fPIC
-I/usr/local/include"
or, as seems from the config.log,
configure -prefix=/usr/local LDFLAGS="-L/usr/local/lib
-L/usr/local/hdf5/lib" CFLAGS=-fPIC
Basically, ld cannot find libhdf5 , so you shpuld find where it is really
installed. A
locate libhdf5
could help tofind the parent directory, which you should include on the
LDFLAGS flag.
Hope some of this helps.
On Wed, Jul 29, 2015 at 8:57 AM, Music, Svetlana <Svetlana.Music@xxxxxxxxxxx
> wrote:
> Hi,
>
> I am trying to configure netcdf-c-4.3.3.1
>
> configure -prefix=/usr/local LDFLAGS=-L/usr/local/lib CFLAGS=-fPIC
>
> and there is an error: Can't find or link to the hdf5 library. The
> config.log is attached. The hdf5 is installed on /usr/local/hdf5
>
> Please help!
>
> Svetlana
>
>
>
> *Svetlana Music* | Senior Meteorologist | *Svetlana.Music@xxxxxxxxxxxxxxxxxx
> <Svetlana.Music@xxxxxxxxxxxxxxxxxx>*
>
> ARCADIS Canada Inc. | 121 Granton Drive | Richmond Hill, ON, L4B 3N4
> T. 905 764 9380 | F. 905 764 9386
> www.arcadis.com
>
> ARCADIS, Imagine the result
> P Please consider the environment before printing this email.
>
>
>
>
>
>
> This e-mail and any files transmitted with it are the property of ARCADIS
> Canada Inc., and its affiliates. All rights, including without limitation
> copyright, are reserved. The proprietary information contained in this
> e-mail message, and any files transmitted with it, is intended for the use
> of the recipient(s) named above. If the reader of the e-mail is not the
> intended recipient, you are hereby notified that you have received this
> e-mail in error and that any review, distribution or copying of this e-mail
> or any files transmitted with it is strictly prohibited. If you have
> received this e-mail in error, please notify the sender immediately.
>
> _______________________________________________
> netcdfgroup mailing list
> netcdfgroup@xxxxxxxxxxxxxxxx
> For list information or to unsubscribe, visit:
> http://www.unidata.ucar.edu/mailing_lists/
>
--
Best regards / Cordialmente,
William-Fernando Oquendo
--------------------------
Este correo puede carecer de tildes o eñes debido al teclado.