Dear Alpine devs,
I am encountering strange issues trying to get the xmrig binary running on my system on a clean, stock install.
The sequence of events:
1. I download the release archive on my macbook running macOS 12.6.3 : https://github.com/MoneroOcean/xmrig/releases/download/v6.19.0-mo1/xmrig-v6.19.0-mo1-lin64-compat.tar.gz
2. I extract it, and then cp the files to a FAT32 MBR formatted flash drive.
3. I eject the drive in Finder, remove it from the macbook and plug it into my Alpine box.
4. I `mount` it to `/mnt`, use cp to copy the files to my /root directory.
5. I then try to execute the binary with `./xmrig`, only to run into "-ash: ./xmrig: not found".
6. Bash reports "bash: ./xmrig: cannot execute: required file not found".
7. Zsh reports "zsh: no such file or directory: /root/xmrig"
But clearly, the executable exists. `cp` put it there, `ls` shows it and `cat` can read it.
I gave up and tried to directly download it with `wget https://github.com/MoneroOcean/xmrig/releases/download/v6.19.0-mo1/xmrig-v6.19.0-mo1-lin64-compat.tar.g <https://github.com/MoneroOcean/xmrig/releases/download/v6.19.0-mo1/xmrig-v6.19.0-mo1-lin64-compat.tar.gz>`, but I suppose the busybox wget has some kind of disability, because it fails with a 404.
What's happening here? I am entirely out of my depth, any guidance is appreciated.
Thanks,
Anant Prem Joshi.
Hi,
On 12/03/2023 23:01, A.P. Jo. wrote:
> What's happening here? I am entirely out of my depth, any guidance is appreciated.
That binary is compiled against glibc and won't run on Musl systems like
Alpine Linux without recompiling. You can see that with `file xmrig`. As
a general note: most binaries you download outside of the Alpine Linux
repositories will not run out of the box. Only when they are statically
compiled against Musl (which most aren't) will they run everywhere,
including on Alpine.
Also, this is not something the devel mailing list should be CC'ed for.
Best regards,
Bart