Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZLIB error when trying to run appimage on Mint 18 #124

Open
NeilT-UK opened this Issue Oct 8, 2018 · 7 comments

Comments

Projects
None yet
4 participants
@NeilT-UK
Copy link

NeilT-UK commented Oct 8, 2018

OS

I'm running Mint 18 Sarah, as default a setup as is likely as I'm an XP refugee and only very slowly getting to grips with linux, so have not touched anything I didn't need to (I think)

Description of issue

Running the appimage throws a zlib error, as detailed below

neil@i5 ~/Downloads $ chmod a+x PacketSender_Linux_x64_v5.7.52.AppImage
neil@i5 ~/Downloads $ ./PacketSender_Linux_x64_v5.7.52.AppImage
./PacketSender_Linux_x64_v5.7.52.AppImage: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /tmp/.mount_Packetzc2ohZ/usr/bin/../lib/libpng16.so.16)

Is it after a specific version of zlib?
How do I find out what my default install is?
When I apt search, there are no plain zlib, or zlib with version numbers found, so I'm not sure where to go next

@dannagle

This comment has been minimized.

Copy link
Owner

dannagle commented Oct 8, 2018

I'm not sure why, but Linux Mint 18 has trouble with the current Packet Sender AppImage. Linux Mint 19 seems to work though. The problem may be my fault in the way I am building the AppImage.

The recommended workaround for Linux users having difficulty with the AppImage is to compile from source.

You'll need the latest Qt SDK
https://www.qt.io/download-thank-you?os=linux

The latest Qt found via "apt get qt5-default" on Mint 18 is not quite new enough.

You could also try an older Packet Sender that was built on top of the previous Ubuntu release. You may have better luck with this one:
https://github.com/dannagle/PacketSender/releases/tag/v5.6.2

Standard build instructions for Packet Sender, assuming you have a recent Qt (qmake)

sudo apt update
sudo apt install git g++
git clone https://github.com/dannagle/PacketSender
cd PacketSender/src
qmake PacketSender.pro
make
./PacketSender
@NeilT-UK

This comment has been minimized.

Copy link
Author

NeilT-UK commented Oct 10, 2018

Thanks, 5.6.2 works. First stop, preferences, don't check for updates!

@Sjmuniz

This comment has been minimized.

Copy link

Sjmuniz commented Oct 20, 2018

Hello, I stepped on the same stone.
I am on Ubuntu ( Description: Ubuntu 16.04.5 LTS 64 bits )
The issue is Ubuntu and others ZLIB is older than the one you were using when you built app binaries.
Please have a look at this answer and comments from an appimage dev.
AppImage/AppImageKit#629 (comment)

Here is the error as I see it:
:~/tmp$ ./PacketSender_Linux_x64_v5.7.52.AppImage
./PacketSender_Linux_x64_v5.7.52.AppImage: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /tmp/.mount_PacketEO2myl/usr/bin/../lib/libpng16.so.16)

As far as I can tell, AppImage "mounts" the app and attempts to run them against local libraries.
You can include or exclude certain libraries if you believe they will be available in the target host.
In this case, libpng16 needs zlib_1.2.9 but Ubuntu has:
:~/tmp$ apt show zlib1g
Package: zlib1g
Version: 1:1.2.8.dfsg-2ubuntu4.1

According to the dev, including zlib with the bundle is discouraged, and he suggests building the software with an older OS, such as Ubuntu 14, to increase the odds the target image will be able to run the app.

Thank you very much!

@Sjmuniz

This comment has been minimized.

Copy link

Sjmuniz commented Oct 20, 2018

Also, I can confirm PacketSender_Linux_x64_v5_6_1.AppImage has just started correctly in my ubuntu setup.
¡THanks!

@dannagle

This comment has been minimized.

Copy link
Owner

dannagle commented Oct 26, 2018

Thanks for looking in to this. I didn't know about the "oldest supported" recommendation.

Migrating my build system to Ubuntu 16 would be quite a hassle. I'll freeze it with this LTS and perhaps add an extra blurb for Linux visitors.

@csonuryilmaz

This comment has been minimized.

Copy link

csonuryilmaz commented Oct 27, 2018

I also get the same error on Debian GNU/Linux 9.5 (stretch):

$ ./PacketSender_Linux_x64_v5.7.52.AppImage 
./PacketSender_Linux_x64_v5.7.52.AppImage: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by /tmp/.mount_PacketxQHBT6/usr/bin/../lib/libpng16.so.16)

PacketSender_Linux_x64_v5_6_1.AppImage works fine. As @NeilT-UK said, I 'll also stay at this version until I find time to compile from source or any other solution. (like upgrading my zlib1g version)

@dannagle

This comment has been minimized.

Copy link
Owner

dannagle commented Dec 28, 2018

New Linux pre-release here:
https://github.com/dannagle/PacketSender/releases/tag/v6.0.19

Please help me test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.