Closed certik closed 11 years ago
So it looks like it cannot find the libsz.so --- possibly at runtime, suggesting the need for LD_LIBRARY_PATH...
I bet the problem is right in hdf5Config/configure.linux
:
./configure LDFLAGS="-L${PYTHONHPC_PREFIX}/lib" LIBS="-lsz -lz" CFLAGS="-I${PYTHONHPC_PREFIX}/include" --with-szlib=${PYTHONHPC_PREFIX} --with-zlib=${PYTHONHPC_PREFIX} --enable-shared --enable-threadsafe -disable-parallel --with-pthread --with-pic --prefix=${PYTHONHPC_PREFIX}
where -lsz
will link with /usr/lib and not ours.
Yep. This fixed it:
diff --git a/hdf5Config/configure.linux b/hdf5Config/configure.linux
index c150db4..223d993 100755
--- a/hdf5Config/configure.linux
+++ b/hdf5Config/configure.linux
@@ -1 +1 @@
-./configure LDFLAGS="-L${PYTHONHPC_PREFIX}/lib" LIBS="-lsz -lz" CFLAGS="-I${PYTHONHPC_PREFIX}/include" --with-szlib=${PYTHONHPC_PREFIX} --with-zlib=${PYTHONHPC_PREFIX} --enable-shared --enable-threadsafe -disable-parallel --with-pthread --with-pic --prefix=${PYTHONHPC_PREFIX}
+./configure LDFLAGS="-L${PYTHONHPC_PREFIX}/lib" CFLAGS="-I${PYTHONHPC_PREFIX}/include" --with-szlib=${PYTHONHPC_PREFIX} --with-zlib=${PYTHONHPC_PREFIX} --enable-shared --enable-threadsafe -disable-parallel --with-pthread --with-pic --prefix=${PYTHONHPC_PREFIX}
Hi there,
You look to have solved this, nice! I am getting the same error,"error while loading shared libraries: libsz.so.2:", over a remote ubuntu server and I use cygwin or putty to remote in. How do I fix this, is it something with the HDF5 install? Any help would be greatly appreciated.
Thanks,
John
Now I am at hdf5:
The relevant part of
config.log
is: