[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #EGO-288225]: Cannot link to hdf5.
- Subject: [netCDF #EGO-288225]: Cannot link to hdf5.
- Date: Tue, 24 Jul 2018 13:27:59 -0600
Hi,
Can you provide the config.log file generated when you ran `configure`? It will
provide additional information which may be helpful for us to discover what is
going wrong.
Thank you,
-Ward
> Hi there,
>
> I have encountered the error:
>
> "configure: error: Can't find or link to the hdf5 library. Use
> --disable-netcdf-4, or see config.log for errors."
>
> when I run configure on version 4.6.1 like so:
>
> """
> ../configure CC=mpicc \
> CXX=mpicxx \
> FC=mpifort \
> CPPFLAGS="-I${HDF5_DIR}/include" \
> CFLAGS="-I${HDF5_DIR}/include" \
> LDFLAGS="-L${HDF5_DIR}/lib" \
> --prefix=${NETCDF4_DIR};
> """
>
> I have compiled HDF5 version 1.10.2 :
>
> """
> ldd ${HDF5_DIR}/lib/libhdf5.so.101.1.0
> linux-vdso.so.1 (0x00007fff423fe000)
> libsz.so.2 => not found
> libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc7f3e80000)
> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc7f3c7c000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc7f38de000)
> libmpich.so.0 => /usr/lib/x86_64-linux-gnu/libmpich.so.0
> (0x00007fc7f3428000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc7f3037000)
> /lib64/ld-linux-x86-64.so.2 (0x00007fc7f4688000)
> libcr.so.0 => /usr/lib/libcr.so.0 (0x00007fc7f2e2c000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007fc7f2c0d000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc7f2a05000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc7f27ed000)
> """
>
> I have linked HDF5 with zlib, as suggested here:
>
> https://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html
>
> So, I'm stumped!
>
> Can anyone help? Thanks.
>
> -Evan
>
>
Ticket Details
===================
Ticket ID: EGO-288225
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.