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 http://developer.amd.com/amd-accelerated-parallel-processing-app-sdk/ 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 https://github.com/fireice-uk/xmr-stak.git
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 libOpenCL.so 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/libOpenCL.so
/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so -> /usr/lib/libOpenCL.so.1
tjadmin@rig05:~/xmr-stak/build$ ls -l /usr/lib/libOpenCL.so.1
ls: cannot access '/usr/lib/libOpenCL.so.1': No such file or directory

:(

rm /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so
ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so

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.



Leave a Reply