PWD-Windows-2022 icon indicating copy to clipboard operation
PWD-Windows-2022 copied to clipboard

./alpha-release-2: cannot execute: required file not found

Open thanhcong2k7 opened this issue 9 months ago • 2 comments

Just like the title, nothing happened after I entered the command.

Image

thanhcong2k7 avatar Mar 08 '25 02:03 thanhcong2k7

Okay, just fixed by running these commands:

apk add --no-cache wget ca-certificates
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk
apk add --allow-untrusted glibc-2.35-r1.apk

sudo mkdir -p /lib64
sudo ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
apk add patchelf
patchelf --set-interpreter /usr/glibc-compat/lib/ld-linux-x86-64.so.2 alpha-release-2

This binary requires glibc to be executed, but on Alpine (play-with-docker) uses musl libc so we need to install a glibc compatibility layer.

Hmmm it instantly deleted my instance. Wondering why...?

thanhcong2k7 avatar Mar 08 '25 03:03 thanhcong2k7

Method moved to https://github.com/kmille36/thuonghai

kmille36 avatar Mar 12 '25 08:03 kmille36