Ubuntu – How to install cpuminer

bitcoinsoftware installation

I am trying to install cpuminer according to this tutorial. The tutorial describes installing cpuminer using terminal.

sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm

# clone cpuminer
git clone https://github.com/pooler/cpuminer.git

# compile
cd cpuminer
./configure CFLAGS="-O3"

# choose a miner pool and register there

# start the miner
./minerd --url=your.minerpool.org --user=username --pass=password

I have installed git and downloaded `cpuminer from git. but when tried to compile it I got this error:

user@user-Dell-Notebook-PC:~$ cd cpuminer
user@user-Dell-Notebook-PC:~/cpuminer$ ./autogen.sh
./autogen.sh: 8: ./autogen.sh: aclocal: not found

I am new to Ubuntu and mining.

Best Answer

It looks like you are missing package automake. To install it open Ubuntu Software Centre and search for automake.

The clue comes from

./autogen.sh: aclocal: not found

The script autoget.sh (which is part of the miner) is trying to use the program aclocal which was not found.

To find out which file belongs to what package use these commands in a terminal window (once only):

sudo apt-get install apt-file
sudo apt-file update

Search for packages containing the program aclocal:

apt-file search aclocal