openSUSE Tumbleweed 10/16/2023 (x86_64) on kernel 6.5.6-1-default
less 4k-4g-1j-32G
/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object
/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object
I googled around and tried various proposed solutions, none worked
4k-4g-1j-32G is a 2k text file
locate libz.so
/usr/lib64/libz.so
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.13
/usr/local/lib/libz.so
/usr/local/lib/libz.so.1
/usr/local/lib/libz.so.1.3
As Lewis already pointed out: you are using a heavily outdated system. Your libz is from January 2023! whilst the latest one is from October…
No wonder that you error out…
Additionally your installation path seems broken…this libraries don’t belong into /usr/local/lib/
ok, so after updating to latest TW I still get the same issue
# lsb_release -a
LSB Version: n/a
Distributor ID: openSUSE
Description: openSUSE Tumbleweed
Release: 20231108
Codename: n/a
/usr/bin/file: error while loading shared libraries: libz.so.1: failed to map segment from shared object