Skip to content

XMRIG COMPILE

To change donation level, edit the source after the git clone at xmrig/src/donation.h

  • EL7 CPU only

    sudo yum install -y epel-release
    sudo yum install -y git make cmake gcc gcc-c++ libstdc++-static libmicrohttpd-devel libuv-static
    git clone https://github.com/xmrig/xmrig.git
    cd xmrig
    mkdir build
    cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release -DUV_LIBRARY=/usr/lib64/libuv.a
    make
    
  • EL7 NVIDIA

    git clone https://github.com/xmrig/xmrig-nvidia.git
    cd xmrig-nvidia
    mkdir build
    cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS_RELEASE="-O3 -DNDEBUG -ldl"
    make
    
  • Ubuntu CPU only

    sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
    git clone https://github.com/xmrig/xmrig.git
    cd xmrig
    mkdir build
    cd build
    cmake ..
    make
    
  • Ubuntu NVIDIA CUDA 8

    sudo apt-get install git build-essential cmake libuv1-dev nvidia-cuda-dev nvidia-cuda-toolkit gcc-5 g++-5 libmicrohttpd-dev
    git clone https://github.com/xmrig/xmrig-nvidia.git
    cd xmrig-nvidia
    mkdir build
    cd build
    cmake .. -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5
    make
    
  • Ubuntu NVIDIA CUDA 9

    sudo apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev
    git clone https://github.com/xmrig/xmrig-nvidia.git
    cd xmrig-nvidia
    mkdir build
    cd build
    cmake ..
    make
    

HUGEPAGES

As root:

    echo 128 > /proc/sys/vm/nr_hugepages
    sysctl -w vm.nr_hugepages=128

EXECUTE XMRIG

As root:

    xmrig -c configure.json -B