Docker-alpine: interpreter /lib64/ld-linux-x86-64.so.2?

Created on 19 Oct 2016  路  2Comments  路  Source: gliderlabs/docker-alpine

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

Most helpful comment

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)

All 2 comments

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)

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ncopa picture ncopa  路  4Comments

nrvnrvn picture nrvnrvn  路  4Comments

sirhopcount picture sirhopcount  路  3Comments

kooksee picture kooksee  路  4Comments

konradjurk picture konradjurk  路  5Comments