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 https://github.com/official-stockfish/Stockfish.git
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:

./stockfish
go infinite

That is all!