Mining Crypto with CPU (cpuminer-multi Setup Guide)
In this post I will be running through a step-by-step walk-through on how to setup your personal machine to mine BTC using the brilliant GitHub project cpuminer-multi by user tpruvot
This is a powerful multi-threaded CPU miner with support for a number of algorithms, and is incredibly straightforward to set up. Squeeze what you can out of your idle CPU power, you may get lucky one day!

Linux
- Clone the project:
git clone https://github.com/tpruvot/cpuminer-multi
- Install dependencies:
sudo apt-get install automake libcurl4-openssl-dev pkg-config libjansson-dev libssl-dev libgmp-dev make g++ autoconf
- Run the build script inside the cloned repo:
cd cpuminer-multi
./build.sh
- Run the miner with your own chosen mining pool details:
./cpuminer -a sha256d -o stratum+tcp://connect.pool.bitcoin.com:3333 -u XXX -p c=BTC
Mac OSX
- Install dependencies (Homebrew):
brew install openssl make automake zlib curl jansson
- Clone the project:
git clone https://github.com/tpruvot/cpuminer-multi
- Run build scripts and make:
cd cpuminer-multi
bash autogen.sh
perl nomacro.pl
./configure CFLAGS="-march=native" --with-crypto=/usr/local/opt/openssl --with-curl
perl -p -i -e "s/#if \(WINDOWS\)/#define ASM 0\n#if (WINDOWS)/g" algo/neoscrypt.c
- Edit file algo/x16rv2.c and change the ‘inline’ on line 69 to ‘static inline’ (thanks to user liukun for this fix):
Before:
inline void padtiger512(uint32_t* hash) {
for (int i = (24/4); i < (64/4); i++) hash[i] = 0;
After:
static inline void padtiger512(uint32_t* hash) {
for (int i = (24/4); i < (64/4); i++) hash[i] = 0;
- Compile:
make
- Run the miner with your own chosen mining pool details:
./cpuminer -a sha256d -o stratum+tcp://connect.pool.bitcoin.com:3333 -u XXX -p c=BTC
Windows
- Download the latest stable release from the below:
https://github.com/tpruvot/cpuminer-multi/releases
-
Unzip the downloaded directory
-
Edit the file RUN-TimeTravel.bat and update the mining pool details with your own
-
Double click the RUN-TimeTravel.bat to start mining

Happy mining!