Coder Social home page Coder Social logo

Unable to compile on Alpine linux about xmrig HOT 5 CLOSED

xmrig avatar xmrig commented on May 18, 2024
Unable to compile on Alpine linux

from xmrig.

Comments (5)

xmrig avatar xmrig commented on May 18, 2024

Can you provide some instructions how setup developer environment, install compiler, cmake, libuv on Alpine Linux. It can speed up process because I was never work with that Linux.
Thank you.

from xmrig.

b-i-t-n avatar b-i-t-n commented on May 18, 2024

What I have done to install xmrig on Alpine linux manually

# apk add openssl-dev curl-dev git cmake libuv-dev build-base
# git clone https://github.com/xmrig/xmrig
# cd xmrig
# mkdir build
# cmake -DCMAKE_BUILD_TYPE=Release .
# make

To use the Dockerfile copy or download the following and run docker build --rm . in the same folder.
https://raw.githubusercontent.com/b-i-t-n/alpine-xmrig/master/Dockerfile

FROM  alpine:latest
RUN   adduser -S -D -H -h /xmrig miner
RUN   apk --no-cache upgrade && \
      apk --no-cache add \
        openssl-dev \
        curl-dev \
        git \
        cmake \
        libuv-dev \
        build-base && \
      git clone https://github.com/xmrig/xmrig && \
      cd xmrig && \
      mkdir build && \
      cmake -DCMAKE_BUILD_TYPE=Release . && \
      make && \
      apk del \
        build-base \
        cmake \
        git
USER miner
WORKDIR    /xmrig
ENTRYPOINT ["./xmrig"]

from xmrig.

b-i-t-n avatar b-i-t-n commented on May 18, 2024

I probably do not need some of the packages as you do not support TLS or HTTP.

from xmrig.

xmrig avatar xmrig commented on May 18, 2024

Yes openssl-dev and curl-dev not required. Okay I will check it later.
Thank you.

from xmrig.

xmrig avatar xmrig commented on May 18, 2024

I fixed it, just one include was missing.

from xmrig.

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.