Zombasite error while loading shared libraries: libpng12.so.0

If you are trying to run Zombasite GoG Version and the game is not starting properly what you can do to try and debug the issue is to run in in a terminal and see the output.


~/GOG\ Games/Zombasite/start.sh

 
If you get de following output:


Running Zombasite
./Zombasite: error while loading shared libraries: libpng12.so.0:
 cannot open shared object file: No such file or directory


 
This output means you are missing at least libpng12.

You can easily verify if you are missing other libraries with the handy ldd command

Run the following with Zombasite installed on the default folder, or update the command accordingly.


ldd ~/GOG Games/Zombasite/game/Zombasite | grep "not found"

 

The output of this command will be at least this line, if there are other missing libraries try to install them beforehand until you have only the libpng12 missing.


        libpng12.so.0 => not found

As libpng12 is a really old library, it’s not a good idea to force install it system-wide, with Linux you can tell a program you are loading first to load libraries from a specified in LD_LIBRARY_PATH variable before loading the system libraries.

First you need to find a compiled copy of libpng12.so.0, the official Ubuntu links are bellow.
Here for x86 https://packages.ubuntu.com/xenial/i386/libpng12-0/download
Here for amd64 https://packages.ubuntu.com/xenial/amd64/libpng12-0/download
 
In Zombasite you’ll need to the the x86 version.
After you get the deb file, just unpack it to find the file named data.tar.gz, it contains a gziped directory structure with the files in the place as they would be installed on your system.
Extract the data.tar.gz and look for a file named “libpng12.so.0”.
To keep everything nice and tidy, create a libs folder in the zombasite directory and move the file there
After that you just need to edit the start.sh file found in the folder “~/GOG Games/Zombasite/game/Zombasite” and change the line


        ./"Zombasite"

 
With this line


        LD_LIBRARY_PATH=$(pwd)/../libs/ ./"Zombasite"

And that’s it, you can obviously use the same trick for other missing libraries, LD_LIBRARY_PATH if a handy tool in your toolbox if you are using old programs or need a slightly exoteric system to run a binary.
 
 

Bellow are direct download links to the files on my server, in case the official links stop working and/or you are crazy enough to install a random binary from a random person in the internet.
nbsp;
libpng12.so.zip

libpng-deb.tar

Sources:

https://askubuntu.com/questions/838965/where-can-i-find-package-libpng12-so-0