-
Notifications
You must be signed in to change notification settings - Fork 27
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
Fix invalid file (bad magic number) Exec format error on Linux #50
Comments
You can try changing |
Thanks for getting back to me. $ sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
$ sudo chmod +x /usr/bin/ape
$ sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sh: 1: echo: echo: I/O error
$ sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sh: 1: echo: echo: I/O error Ok, so maybe the problem is that |
I tried looking at how other people handled similar issues: But then after reading the actual Still doesn't work. $ ./datasette
invalid file (bad magic number): Exec format error
$ /usr/bin/ape ./datasette
ape error: ./datasette: didn't embed ELF magic |
Okay, I'll cut a new release in a bit and we can try again. Are you running this inside a Docker image? |
Thanks. I'm running this directly on my machine. |
I think you can get it to work by:
|
Thank you; confirmed that works. I didn't realize that the APE was inside the first level of zip file. |
I'm having trouble running
datasette
(or any of the releases) on Linux:The text was updated successfully, but these errors were encountered: