phantom
phantom copied to clipboard
Compiled on Raspberry Pi 4 and the binary fails to execute.
I compiled this many times. Reinstalled Go and I'm still struggling to make progress. Once I compile and add exec permissions, I go to run the binary and I get:
-bash: ./phantom-linux: cannot execute binary file: Exec format error
Also additional note. I had to add SHELL=/bin/bash
to the top of the Makefile to get it to work. Otherwise it threw an error about pushd.
Just tried your arm8 binary and it gave me the same error.
-bash: ./phantom-linux-arm8: cannot execute binary file: Exec format error
Hey @trixtur, hmmmmm.
- What OS is the Pi running?
- Have you tried the arm7 binary instead?
This shows that it should be ARMv8 so I'm not sure why that one isn't working. The specs say that it should be backwards compatible though.
My Pi 4 is running Raspbian buster. I did try to run arm7 with a similar result. Sorry for the delayed response. I ended up compiling the arm7 on my Pi 3 and running it there instead. I'd be happy to keep testing it on the Pi 4 though.
I just pulled a fresh copy of the code and built arm8 again and I got the same error. However this time when I built arm7 it worked.
Hey - I can also confirm that running v0.5.3/phantom-linux-arm7 works on my RhaspberryPi4.
OS: Linux raspberrypi 5.4.83-v7l+ armv7l
Specifically (and no root needed):
wget https://github.com/jhead/phantom/releases/download/v0.5.3/phantom-linux-arm7
chmod u+x ./phantom-linux-arm7
./phantom-linux-arm8 -server $my_server_ip:19132
It worked almost immediately on my Xbox One Minecraft. I may have had to close & re-open it.
This is a great little tool @jhead nice work. I can prep a PR into the readme with this info if you'd like. Next task for me will be setting it up as a service so it's always running.
You can at least close this issue!