[LXC] bash: ./WebServer: cannot execute binary file: Exec format error #22945
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
I've just finished my web server in Golang, so I moved the build from my PC (Ubuntu 17.04) to the server (Ubuntu 16.04 @ LXC container). The problem is that when I try to run the binary I get
Exec format error
.I think it's an issue of LXC, because I've tried running the build on another computer (Ubuntu 17.04) and it runs.
So I've tried installing golang-go on the server too, but naturally nothing has changed. I've also tried building the package with the standard command (
go build main.go
) and with this other:env GOOS=linux GOARCH=amd64 go build -v
, but none of the two has worked.go env (my pc):
go env (server):
The text was updated successfully, but these errors were encountered: