A recent subscriber on my youtube channel requested to compile a version of cpuminer for Raspberry Pi to mine bitcoin / altcoins. Knowing that it’s not really worth the cpu cycles, I decided to compile a version for anyway. I have also wrote a quick tutorial explaining how to compile your own in case you want to.

Equipment List

Raspberry Pi 3 ► Amazon | Ebay

Source code used:



Installing Dependencies

first you will need to install all the dependence:

$ sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++ git

Downloading Source Codes

now we need to grab the source codes:

$ git clone https://github.com/tpruvot/cpuminer-multi

navigate to the folder:

$ cd cpuminer-multi


To compile the software you will need to enter these commands below

$ ./autogen.sh && build.sh

when done you should have a file called cpuminer

to figure out what you need you should try using the help

$ cpuminer --help


here is a example connection

$ ./cpuminer -u user -p pass -a algorithm -o stratum+tcp://pool:1234 -t cputhreads

if your mining this with a pi, try lowering the diff factor with the command below.

-f num