Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Got "bad ELF interpreter" when executing pre-built binary 2.1.1 #579

Open
fscnick opened this issue Jun 20, 2021 · 2 comments · May be fixed by #584
Open

Got "bad ELF interpreter" when executing pre-built binary 2.1.1 #579

fscnick opened this issue Jun 20, 2021 · 2 comments · May be fixed by #584

Comments

@fscnick
Copy link

fscnick commented Jun 20, 2021

I got the error message from pre-built binary with version 2.1.1.

/lib/ld-musl-x86_64.so.1: bad ELF interpreter: No such file or directory

I'm sure the binary I downloaded is correct.

OS: CentOS 7
Arch: amd64

However, I compiled from the source via go get github.com/prasmussen/gdrive. It works normally.

@fscnick fscnick changed the title Got "bad ELF interpreter" from pre-built binary 2.1.1 Got "bad ELF interpreter" when executing pre-built binary 2.1.1 Jun 20, 2021
@hannob
Copy link

hannob commented Jun 30, 2021

Apparently it seems the executable file for x86_64 requires the musl libc loader.

This is quite unusual and unexpected. Is this intended?

@fscnick
Copy link
Author

fscnick commented Jun 30, 2021

I guess they put the wrong binary.

#580 (comment)

thvitt added a commit to thvitt/gdrive that referenced this issue Jul 12, 2021
This forces all built binaries to be statically linked.

Fixes prasmussen#579, prasmussen#580
@thvitt thvitt linked a pull request Jul 12, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants