Re: Unable to open .zip in Docker container


David Johansen <davejohansen@...>
 

On Fri, Feb 21, 2020 at 1:56 PM René Buffat <buffat@...> wrote:
Under linux, you can view shared libraries linked to a binary using ldd.

E.g. ldd /usr/bin/gdalinfo

It looks like gdal is using minizip ( https://packages.debian.org/buster/minizip ) in the debian image and I wonder if it doesn't support the format of the file I'm using:
# ldd /usr/lib/libgdal.so | grep -i z
libsz.so.2 => /usr/lib/x86_64-linux-gnu/libsz.so.2 (0x00007fc51c3bb000)
libzstd.so.1 => /usr/lib/x86_64-linux-gnu/libzstd.so.1 (0x00007fc51b8aa000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fc51b882000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc51a963000)
libminizip.so.1 => /usr/lib/x86_64-linux-gnu/libminizip.so.1 (0x00007fc51921c000)

And on Alpine it looks like it's using libz:
# ldd /usr/lib/libgdal.so | grep -i z
libz.so.1 => /lib/libz.so.1 (0x7ff3ca10f000)
liblzma.so.5 => /usr/lib/liblzma.so.5 (0x7ff3c9999000)
libbz2.so.1 => /usr/lib/libbz2.so.1 (0x7ff3c998a000)

Join main@fiona.groups.io to automatically receive all group messages.