Compile with: GOOS=linux GOARCH=amd64 go build -o dev_mysqldump main.go Note that the dev_mysqldump file in the repo is compile with these flags.