How to Compile Monero Miner xmr-stak for Ubuntu 16.04 LTS

Posted: December 12th, 2017 | Author: | Filed under: CryptoCurrenty, Monero | Tags: , , , , | No Comments »

Monero-MiningI have a couple ethereum mining rigs using AMD GPUs but my partner and I would like to diversify our operation. We wanted a Monero CPU and GPU Miner for AMD cards but couldn’t find a pre-compiled binary.

Get AMDAPPSDK You’ll need to get this into your linux rig somehow and install it.

Next we need to prep the system for the build so run the follow lines of bash.

sudo apt install libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev cmake-curses-gui
git clone
cd xmr-stak; mkdir build; cd build

Now we’re ready to configure the compilation. ccmake .. -DCUDA_ENABLE=OFF Change the install path to /usr/local/xmr-stak Press “C” a couple times until you see a “G” option for generate config file.

After this I tried to run make but it errored out saying that was missing so make sure the OpenCL library in /opt is pointing to the right place.

tjadmin@rig05:~/xmr-stak/build$ ls -l /opt/AMDAPPSDK-3.0/lib/x86_64/
/opt/AMDAPPSDK-3.0/lib/x86_64/ -> /usr/lib/
tjadmin@rig05:~/xmr-stak/build$ ls -l /usr/lib/
ls: cannot access '/usr/lib/': No such file or directory


rm /opt/AMDAPPSDK-3.0/lib/x86_64/
ln -s /usr/lib/x86_64-linux-gnu/ /opt/AMDAPPSDK-3.0/lib/x86_64/

After this is done you should be able to make and then make install

Once installed navigate to /usr/local/xmr-stak/bin and run sudo ./xmr-stak

You’ll be navigated through some first-run questions to ask for your pool and wallet address and whether you want to run nicehash.