How to : Compile ccminer under Ubuntu

Here’s a tutorial on how to compile ccminer under Ubuntu 14.04

//Install a NVIDIA driver in “Additional Drivers” then reboot your RIG.

//You can download CUDA 6.5 here

//Installation of CUDA 6.5(.14 for 750ti, .19 for 9xx)
//Press CTRL+ALT+F1 (ttyl1) then enter :

sudo service lightdm stop
sudo apt-get install libglu1-mesa libxi-dev libxmu-dev
sudo chmod a+x cuda_6.5.14_linux_64.run
sudo ./cuda_6.5.14_linux_64.run --override compiler

//Do not install the driver who comes with the CUDA 6.5 setup.

sudo nano ~/.bashrc

//Copy these 2 lines at the end of ./bashrc

export PATH=$PATH:/usr/local/cuda-6.5/bin
export LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64:/lib

//Reboot
Sudo reboot

//Installation of ccminer
//Clone ccminer (example with SP’s fork)
git clone https://github.com/sp-hash/ccminer.git
//If you use 750ti, modify Makefile.am FROM :
nvcc_ARCH = -gencode=arch=compute_52,code=\"sm_52,compute_52\"
nvcc_ARCH += -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"

//TO:
#nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
nvcc_ARCH = -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_35,code=\"sm_35,compute_35\"
#nvcc_ARCH += -gencode=arch=compute_30,code=\"sm_30,compute_30\"

//When the modification are done, finalize the compiling of ccminer
cd ccminer
./autogen.sh
./configure
./build.sh

Here you go! It’s done! All you need now is to set your miner to mine on a pool or a local wallet!

Your command line should looks like this one:
sudo LD_LIBRARY_PATH=/usr/local/cuda-6.5/lib64 ./ccminer –algo=algo -o stratum+tcp://pool_link:port -u Worker.ID -p password

To compile a Wallet-QT on Linux, click here

You may also like...

1 Response

  1. December 3, 2015

    […] Nouveau mineur sous Linux? Utilisez notre didactiel étape par étape : Comment compiler ccminer sous Ubuntu […]

Leave a Reply

Your email address will not be published. Required fields are marked *