-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile on Alpine linux #28
Comments
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. |
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 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"] |
I probably do not need some of the packages as you do not support TLS or HTTP. |
Yes openssl-dev and curl-dev not required. Okay I will check it later. |
I fixed it, just one include was missing. |
I am building XMRig in a Alpine Docker container.
I have had a quick look around on how to fix this but I am not a c++ dev.
It could be because Alpine linux does not use glibc so in most cases it is treated like linux but should be treated like osx or freebsd.
The text was updated successfully, but these errors were encountered: