Is there an easy guide how to install stockfish on ubuntu?

From the main site I can not find any information and github repository does not provide many details.

I would really appreciate if someone who already installed and started to run it would share the steps.

Just for completeness, I would like to add more explicit instructions for using stockfish in Scid, because sometimes it is a little confusing how to get stockfish to function in an actual chess program.

sudo apt-get install scid
sudo apt-get install stockfish

Load Scid In Scid Click:

Tools -> Analysis Engine (click twice) -> New
    Set Name to ‘stockfish’
    Command is /usr/games/stockfish (use ‘which stockfish’ if not)
    Directory : Click the ~/.scid button
    Hit OK and select the stockfish engine

Hopefully this is straightforward enough that anybody could replicate it.

  • This installs an old copy of Stockfish. – SmallChess Oct 22 '15 at 1:04
  • Is studo a typo for sudo? – Caridorc Jun 28 '16 at 21:29
  • @Caridorc yup, thanks. – The Nightman Jun 28 '16 at 21:30

As probably you already know Stockfish is "only" a chess engine. It means it's "only" the part of the program that makes the thinking, and it has no interface at all.

I haven't used Ubuntu for a while, but AFAIK Stockfish is available on its repositories, so you should be able to install it just by: $ sudo apt-get install stockfish

If for whatever reason you need/want to install Stockfish from the sources, once you've downloaded the code from the github repo, you just need a C++ compiler (v.g. g++) and from the "src" folder enter the command: $ make build ARCH=x86-64 (This is for 64-bit systems) $ make build ARCH=x86-32 (This is for 32-bit systems)

In order to be able to play against Stockfis you need a chess GUI, for example Arena (only windows version, so you need wine in order to make it work) and ScidVsPC are vey popular: http://scidvspc.sourceforge.net/ http://www.playwitharena.com/

Once you've installed a GUI and the Stockfish engine, you just have to add the Stockfish engine to the GUI in order to be able to play against it.

  • Stockfish is on Ubuntu repositories and SCID is also available. SCIDvsPC isn't – sharcashmo Jun 2 '16 at 15:09

The package is referenced at http://packages.debian.org/sid/i386/stockfish/download which can be installed with aptitude or synaptic.

Try this Link for more info

I suggest you simply use this command in your Terminal:

sudo apt-get install stockfish

I would recommend that you download the engine from https://stockfishchess.org/.

Unzip the zip file and go into the src folder.

unzip stockfish-7-linux.zip
cd stockfish-7-linux/src

Call the make script i.e.

make build ARCH=x86-64

Don't use apt-get because it doesn't give the latest Stockfish version. Do this:

wget https://stockfish.s3.amazonaws.com/stockfish-8-linux.zip
unzip stockfish-8-linux.zip
./stockfish-8-linux/Linux/stockfish_8_x64
  • Is this accurate? apt show stockfish returns Version: 8-3 on my machine (Ubuntu 17.04, so not even the latest Ubuntu). – Federico Poloni Dec 22 '17 at 10:14

Even with Ubuntu 18.04, apt-get will only install stockfish 8.3. A source package for Stockfish 9 is available at https://stockfishchess.org/. Installation instructions are at http://support.stockfishchess.org/kb/advanced-topics/compiling-stockfish-on-linux.

  • 1
    Thank you very much for your contribution. However, it is better to include or paraphrase the most important information from the linked resources instead of simply providing a link. – Christophe Strobbe Oct 9 at 17:37

protected by Phonon Oct 9 at 16:14

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.