sgerrand / alpine-pkg-glibc

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

Glibs not work? #46

Closed makorne closed 7 years ago

makorne commented 7 years ago

After I add apk -

ldd --version musl libc (x86_64) Version 1.1.15 Dynamic Program Loader

Is it normal? How to check which glibc is used?

sgerrand commented 7 years ago

You'll need to change your path to reference the version of ldd installed by this package. Running which ldd will show you the program you've used.

sgerrand commented 7 years ago
/ # /usr/glibc-compat/bin/ldd --version
ldd (GNU libc) 2.25
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
sgerrand commented 7 years ago

Note that you'll need to install the glibc-bin package to use this version of ldd.

Subrhamanya commented 1 year ago

@sgerrand any idea how to make glibc default ldd rather than musl? Each time moving to glibc-bin and running is not the final solution for me.

sgerrand commented 1 year ago

You'll need to change the $PATH precedence so that this executable is found before the musl version, e.g. prepend it.