Trying to run go binary on pretty old server


I am trying to run a go binary on an pretty old linux server. I get the message “/usr/lib64/ bad ELF interpreter: No such file or directory”. Do I have to compile it differently?

solved it by compiling it in a different way:

CC=$(which musl-gcc) go build --ldflags ‘-w -linkmode external -extldflags “-static”’ server.go

Ah good to know. Interesting though that I compiled it on a Linux as well

Is your old server 32-bit?

No it is a 64-bit

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.