Open wgqimut opened 1 year ago
It's not just httpie 3.2.1.
Tried other versions on docker's busybox:1.35.0 (uclibc, "has no python") and the same happened:
docker run --rm -it busybox:1.35.0
cd /tmp
rm *
touch 3.1.0 3.2.0 3.2.1
find * -type f -print -exec wget -O http-{} https://github.com/httpie/httpie/releases/download/{}/http \;
chmod +x http-*
find . -name "http*" -print -exec sh -c "{} --version" \;
# ./http-3.2.0
# sh: ./http-3.2.0: not found
# ./http-3.2.1
# sh: ./http-3.2.1: not found
# ./http-3.1.0
# sh: ./http-3.1.0: not found
It was never statically linked. ~Would building it with something like CGO_ENABLED=0 go build -static
solve it?
Doing it may bloat the final binary, right?~
-- EDIT -- Just noticed it's not a go project 😅
Checklist
Minimal reproduction code and steps
Current result
…
Expected result
it seems that httpie still rely on libpython3.9.so, and libpython3.9.so rely on specific glibc version.