Giter Club home page Giter Club logo

Comments (5)

Bendr0id avatar Bendr0id commented on July 17, 2024 1

Hi,
This won't work like you do it. With a system on libc you can't create a full static build. It has always depencies to the platform glibc libs.

If you want to create a full static build you need to use a system like Alpine which uses musl instead.

Regards,

from xmrigcc.

Bendr0id avatar Bendr0id commented on July 17, 2024 1

If your rigs don't run on a various of different Linux distributions, a non static build but with using static dependency libs (openssl, libuv, hwloc) will also work.

from xmrigcc.

PsychoSec2 avatar PsychoSec2 commented on July 17, 2024

@Bendr0id Thanks for fast reply! I'll try to start up a Alpine VM and see if I can make a static build from there! If I have any issues then I'll post it here. Much thanks!

from xmrigcc.

PsychoSec2 avatar PsychoSec2 commented on July 17, 2024

Compiled it using an Alpine VM and followed build instructions, everything works perfectly!

from xmrigcc.

martin-braun avatar martin-braun commented on July 17, 2024

@Bendr0id I tried to do it as you told, because fully dynamically linked isn't possible anymore, because Debian doesn't have libssl 1.1 anymore. So I thought it is necessary to build some deps and link them statically. I did this:

(cd scripts && ./build_deps.sh)
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON -DXMRIG_DEPS=../scripts/deps -DWITH_OPENCL=OFF -DWITH_CUDA=OFF ..
cmake --build . --config Release

It still complains:

$ ./xmrigServer
./xmrigServer: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

from xmrigcc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.