Compiling Stockfish on Linux

Applies to Linux operating systems such as Ubuntu.

Here are the Terminal commands you need to use:

sudo apt-get install git g++
git clone
cd Stockfish/src
make help

Type the string that matches your hardware and OS. Some examples include:

make profile-build ARCH=x86-64
make profile-build ARCH=x86-32

After the compilation is complete:

go infinite

That is all!