Sunday, 4 August 2013

How to Build CPUMINER from Source Code in Debian

cpuminer is a miner program for Litecoin and Bitcoin cryptocurrencies. It runs on CPUs (it does not need a graphic card to run).

By default it uses scrypt algorithm, but it can be configured to use SHA-256 one.

Build cpuminer from source code:

In order to build cpuminer from source code we will download its source code from its repository:
$ sudo aptitude install git
$ git clone
$ cd cpuminer
$ less README

Next we install some dependencies to be able to build it.
$ sudo aptitude install automake
$ sudo aptitude install pkg-config
$ sudo aptitude install gcc
$ sudo aptitude install make

NOTE: without this package: "possibly undefined macro: AC_MSG_ERROR" error appears
$ sudo aptitude install libcurl3-gnutls-dev

Create configure and Makefile files:
$ ./ installing './compile' installing './config.guess' installing './config.sub' installing './install-sh' installing './missing' warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') installing './INSTALL' installing './depcomp'

Build the sources: