xmrig icon indicating copy to clipboard operation
xmrig copied to clipboard

Need static Linux binary

Open a-p-jo opened this issue 2 years ago • 7 comments

The released linux binaries seem to be dynamically linked to glibc. It would be better if they were static binaries, maybe linked to musl, as dynamically linked binaries make little sense on Linux.

As a note to anyone on Alpine Linux, you need to:

  1. Enable community repos
  2. apk add gcompat

a-p-jo avatar Mar 12 '23 22:03 a-p-jo

glibc won't static, if you build your own it will be all static except for glibc.

I don't think alternative libc's work, for some non-trivial reason.

Spudz76 avatar Apr 10 '23 15:04 Spudz76

the instructions were easy enough for me to follow, I have confidence in you

https://xmrig.com/docs/miner/build

please close this issue

realsetvin avatar May 28 '24 14:05 realsetvin

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

a-p-jo avatar May 29 '24 12:05 a-p-jo

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

apologize for my lack of understanding, do you think you could form a pull request to solve the issue? any suggestions?

realsetvin avatar May 29 '24 12:05 realsetvin

There's instructions to statically compile here:

  1. sudo apt install git build-essential cmake automake libtool autoconf
  2. git clone https://github.com/xmrig/xmrig.git
  3. mkdir xmrig/build && cd xmrig/scripts
  4. ./build_deps.sh && cd ../build
  5. cmake .. -DXMRIG_DEPS=scripts/deps
  6. make -j$(nproc)

I've attached a static build for linux here. Use at own risk etc. etc. xmrig.zip

GhostDog98 avatar Jun 13 '24 23:06 GhostDog98

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

Must be why every package on the Debian repo is dynamic linked 🤡

Spudz76 avatar Jun 14 '24 05:06 Spudz76

Also as far as I know the compat release is static.

https://github.com/MoneroOcean/xmrig/releases/download/v6.21.3-mo15/xmrig-v6.21.3-mo15-lin64-compat.tar.gz

Spudz76 avatar Jun 14 '24 05:06 Spudz76