0

I'm running a headless Raspberry Pi 4b connected to Ethernet and controlled via SSH from my MacBook Pro. I used scp to move XMRig for Linux over to it, preset to mine. However, when attempting to run the file with the command ./xmrig, it will not run and gives the following error:

pi@raspberrypi:~ $ ls
xmrig
pi@raspberrypi:~ $ cd xmrig
pi@raspberrypi:~/xmrig $ ls
xmrig-6.16.2
pi@raspberrypi:~/xmrig $ cd xmrig-6.16.2/
pi@raspberrypi:~/xmrig/xmrig-6.16.2 $ ls
config.json  SHA256SUMS  xmrig
pi@raspberrypi:~/xmrig/xmrig-6.16.2 $ ./xmrig
-bash: ./xmrig: cannot execute binary file: Exec format error
pi@raspberrypi:~/xmrig/xmrig-6.16.2 $ 

What does this mean? Why won't it execute? Is there a version of XMRig for the Raspberry Pi specifically?

2
  • Are you using a version made for the Arm chip in the Pi or for a different architecture? Commented Dec 30, 2021 at 0:46
  • follow the ubuntu build basic options via command line xmrig.com/docs/miner/build/ubuntu
    – rusty
    Commented Dec 31, 2021 at 20:30

1 Answer 1

1

If you use the Linux versions from Github for xmrig, they are all X64, not ARM. They are compild for a different processor and will therefore not run on the Pi.

So, unless you found a version specifically for the Pi, your best bet would be to download the source ans compile on th Pi. In the tar.gz for the sourcecode, there should be some read-me or install file that will give hints on how to compile and install it.

1
  • 1
    I did that and it's up and running, thanks! Commented Dec 30, 2021 at 17:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.