sgerrand / alpine-pkg-glibc

A glibc compatibility layer package for Alpine Linux
2.05k stars 280 forks source link

explanation request #151

Closed vinniec closed 3 years ago

vinniec commented 3 years ago

I would like to try your apk to run applications compiled with glibc. I followed your installation instructions https://github.com/sgerrand/alpine-pkg-glibc#installing I'm not sure if I got it right, but after I've tried to rub different appimages with no result (it tells me it has a problem with zlib, I think it's a zip library but that library is installed on my distribution). My goal would be to get vscodium working https://github.com/VSCodium/vscodium/releases/download/1.53.2/VSCodium-1.53.2-1613089951.glibc2.16-x86_64.AppImage . I really like alpine but there are some programs I really miss.

anki-code commented 3 years ago

I think you mean

error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

To avoid this error you should install locales that described in the README. Example of success with AppImage is in #153.

vinniec commented 3 years ago

Thanks for the tips, I also managed to boot xonsh (in addition to the commands you specified here https://github.com/sgerrand/alpine-pkg-glibc/issues/153#issuecomment-795334536 I had to add modprobe fuse), but I still couldn't start vscodium: 1) first it asked for libXss.so.1, so I have installed libxscrnsaver 2) after it asked libasound but adding alsa-lib does not solve it


codium: /usr/lib/libasound.so.2: no version information available (required by codium)
codium: /usr/lib/libasound.so.2: no version information available (required by codium)
codium: Relink `/usr/lib/libgmp.so.10' with `/usr/glibc-compat/lib/libc.so.6' for IFUNC symbol `memmove'
Segmentation fault
alpinnie:~/daa$ ```
sgerrand commented 3 years ago

Hi there. The missing shared library you referenced, /usr/lib/libasound.so.2, was used during the compilation of the executable file codium that you're using. It is not provided with the glibc package.

If you want to use one or more files on Alpine Linux which were compiled on a glibc based operating system, then you are responsible for ensuring that all of the shared libraries they need are available at runtime. I am unable to help you with this process.

Sorry that I can't be of more help, but this package was created as a convenience method. It's still provided as such. The caveat is that you will need advanced knowledge of the program you're trying to run in order to do so.

I strongly recommend that you use a Docker image with a glibc based operating system to run your program instead. Debian stable-slim has a footprint comparable with Alpine these days!