derrod / legendary

Legendary - A free and open-source replacement for the Epic Games Launcher
https://legendary.gl/discord
GNU General Public License v3.0
4.59k stars 164 forks source link

Error while loading shared libraries: libz.so.1: failed to map segment from shared object #593

Open RafaelLinux opened 1 year ago

RafaelLinux commented 1 year ago

Platform

Operating System: openSUSE Tumbleweed 20230731 KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 Kernel Version: 6.4.6-1-default (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 Legendary version (legendary -V): latest available at 13/08/2023 Running with "-V" end with same error: ./legendary: error while loading shared libraries: libz.so.1: failed to map segment from shared object

Expected Behavior

To run Legendary

Current Behavior

Nothing happens, but if I launch from console, it shows mentioned error, and nothing more.

Steps to Reproduce

  1. From console "./legendary"

Additional info

I searched in openSUSE repositories some package named that way, but there is nothing similar to "libz.so"

CommandMC commented 1 year ago

A quick google suggests that you're missing zlib, which is available on SUSE (here)

RafaelLinux commented 1 year ago

Following your comment, I have gone deeper into this topic, since I was very surprised that the package whose link you include is not in the official repositories. After such a search, I realized that the module "libz.so.1" is indeed installed by default in any version of openSUSE. It is included in the package "libz1" (installed as I say by default) and it includes

/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.13