Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'exec format error' when using binary from 0.6.3-alpha1 release #23

Closed
stephenchu opened this issue May 9, 2019 · 3 comments
Closed
Assignees

Comments

@stephenchu
Copy link

OS: macOS Sierra 10.12.6

Darwin a.b.c.d 16.7.0 Darwin Kernel Version 16.7.0: Wed Feb 27 00:29:57 PST 2019; root:xnu-3789.73.43~1/RELEASE_X86_64 x86_64

When I tried to download the pre-built binary, I am unable to run it:

› curl -fsSL -o docopts https://github.com/docopt/docopts/releases/download/v0.6.3-alpha1/docopts && chmod +x docopts && ./docopts --help
zsh: exec format error: ./docopts

› file ./docopts
./docopts: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped

Thanks.

@Sylvain303 Sylvain303 self-assigned this May 10, 2019
@Sylvain303
Copy link
Collaborator

Hi @stephenchu

prebuilt binaries are for GNU/Linux only, not for mac OS.
I should write it somewhere, sorry.

I built this for you with golang cross compile built-in on my Linux 64 bits OS.

$ make docopts-OSX
env GOOS=darwin go build -o docopts-OSX docopts.go

I don't have any mac OS nearby, it is not tested.

I uploaded it here: docopts-OSX
Download Expiration: sunday 9 june 2019 05:26 GMT+2
https://framadrop.org/r/yyX4nzLvMc#ravQ1355P/8+Y/A5J0H3XpId+FH++1pTCnbfpwEK/38=

Here is the checksum to verify the downloaded binary.

$ sha256sum docopts-OSX
4981ea3995641d3b00f5ee760ea404598734aa2320f81a6ef8b9c569a865d8c1  docopts-OSX

does it helps?

In the file:

https://github.com/docopt/docopts/blob/master/.travis.yml

There is command to build for mac OS, if you want to try on your computer

Of course, you will need to setup a build environment for golang on you computer.

brew update
brew install bash
bash --version ; type bash
go get github.com/docopt/docopt-go
go get github.com/docopt/docopts

another option would be to retrieve the travis built binary.

Hope that helps.

@Sylvain303
Copy link
Collaborator

Hi @stephenchu, did you test the provided binary?

@Sylvain303
Copy link
Collaborator

I close this issue, and opened #32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants