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

interpreter /lib64/ld-linux-x86-64.so.2? #219

Closed
gliptak opened this issue Oct 19, 2016 · 4 comments
Closed

interpreter /lib64/ld-linux-x86-64.so.2? #219

gliptak opened this issue Oct 19, 2016 · 4 comments

Comments

@gliptak
Copy link

gliptak commented Oct 19, 2016

I would like to run an executable described as:

/tmp/ghc-8.0.1 # file utils/ghc-pwd/dist-install/build/tmp/ghc-pwd
utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=9fcf1bc38db049d6bafc6e611c09b6700071bfbb, not stripped

Is there a way to install /lib64/ld-linux-x86-64.so.2 (I couldn't find a package containing it ...)?

Thanks

@ncopa
Copy link
Collaborator

ncopa commented Oct 19, 2016

The binary you try to run is linked against GNU libc so it will not work, just like binaries compiled for windows or OSX will not work.

That said, musl libc provides partial GNU libc compatibility, which means that some binaries will actually work, even if there are no guarantee. Try apk add libc6-compat. It may or may not work.

If it does not work then you will have to use a system the binary is built for (eg debian or similar)

@ncopa ncopa closed this as completed Oct 19, 2016
@gliptak
Copy link
Author

gliptak commented Oct 19, 2016

Thank you for the details @ncopa Adding apk add libc6-compat didn't help.

There are workarounds at http://wiki.alpinelinux.org/wiki/Running_glibc_programs

@rdesgroppes
Copy link

@gliptak

Adding apk add libc6-compat didn't help.

Try apk add gcompat instead (https://pkgs.alpinelinux.org/package/edge/community/x86/gcompat),

@jlison
Copy link

jlison commented Jan 5, 2022

This fixed it for me: rails/tailwindcss-rails#115 (comment)

apk add build-base gcompat 

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

4 participants