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

explanation request #151

Closed
vinniec opened this issue Mar 4, 2021 · 3 comments
Closed

explanation request #151

vinniec opened this issue Mar 4, 2021 · 3 comments

Comments

@vinniec
Copy link

vinniec commented Mar 4, 2021

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
Copy link

anki-code commented Mar 10, 2021

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
Copy link
Author

vinniec commented Mar 10, 2021

Thanks for the tips, I also managed to boot xonsh (in addition to the commands you specified here #153 (comment) 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
Copy link
Owner

sgerrand commented May 8, 2021

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!

@sgerrand sgerrand closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants