pktvisor icon indicating copy to clipboard operation
pktvisor copied to clipboard

AppImage does not work on Alpine linux

Open weyrick opened this issue 4 years ago • 2 comments

Hi Shannon, On Alpine linux (musl c) :
ldd ./pktvisor-x86_64-3.2.0.AppImage 
	/lib64/ld-linux-x86-64.so.2 (0x7f01ebc40000)
	libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f01ebc40000)
	libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f01ebc40000)
	libz.so.1 => /lib/libz.so.1 (0x7f01ebc26000)
	libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f01ebc40000)
Error relocating ./pktvisor-x86_64-3.2.0.AppImage: gnu_dev_makedev: symbol not found

This appears to be related to https://github.com/AppImage/AppImageKit/issues/1015

weyrick avatar Apr 22 '21 12:04 weyrick

Note that on e.g. Ubuntu:

ldd ./pktvisor-x86_64.AppImage
	not a dynamic executable

weyrick avatar Apr 22 '21 12:04 weyrick

glibc needs to be installed on Alpine Linux for AppImages to run. At least until we can get them to work using https://git.adelielinux.org/adelie/gcompat/; it seems like https://github.com/AppImage/AppImageKit/pull/1168 can be the key to this.

probonopd avatar Jan 28 '22 16:01 probonopd

With the static runtime, glibc no longer needs to be installed on Alpine Linux to run an AppImage (if what is inside the AppImage is either bundling everything, or is statically linked, or consists of platform-independent interpreted code/scripts).

probonopd avatar Jul 06 '23 18:07 probonopd

We've moved away from AppImage and now have static binaries.

weyrick avatar Jul 06 '23 18:07 weyrick

Just saying, if you put a static binary into an AppImage with the static runtime, then it can run on Alpine and other Linux distributions. (Why would one want to do such a thing? Maybe to bundle icons, translations, etc. alongside the application.)

probonopd avatar Jul 06 '23 18:07 probonopd

Understood, thanks!

weyrick avatar Jul 06 '23 18:07 weyrick