Subject: Re: bug#54941: No such file or directory when running a binary
From: Maxime Devos <[email-masked]>
To: Haider Mirza <[email-masked]>, [email-masked]
Date: Sat, 16 Apr 2022 16:16:06 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Haider Mirza schreef op za 16-04-2022 om 14:58 [+0100]:
> You're right about the fact that the binary is requesting "/lib64/ld-
> linux-x86-64.so.2" Is it possible to force the binary to use another
> interpreter? If not you can close this down.

Yes, here's how to do it on Debian:

$ ~/.guix-profile/lib/ld-linux-x86-64.so.2 /bin/ls
/bin/ls: error while loading shared libraries: libselinux.so.1: cannot
open shared object file: No such file or directory
[failed!]

Though as can be seen above, not all combinations of interpreters and
binaries actually function ...

Greetings,
Maxime.