34

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.

2

6 Answers 6

29

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.

3
  • 3
    This installs an old copy of Stockfish.
    – SmallChess
    Commented Oct 22, 2015 at 1:04
  • Is studo a typo for sudo?
    – Caridorc
    Commented Jun 28, 2016 at 21:29
  • Full path to stockfish executable is not required tested as of scid 4.7.4, just stockfish works. Commented Feb 24, 2023 at 13:36
7

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.

1
  • Stockfish is on Ubuntu repositories and SCID is also available. SCIDvsPC isn't
    – sharcashmo
    Commented Jun 2, 2016 at 15:09
5

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
5

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

wget https://stockfishchess.org/files/stockfish-10-linux.zip
unzip stockfish-10-linux.zip
chmod +x stockfish-10-linux/Linux/stockfish_10_x64
./stockfish-10-linux/Linux/stockfish_10_x64
3
  • Is this accurate? apt show stockfish returns Version: 8-3 on my machine (Ubuntu 17.04, so not even the latest Ubuntu). Commented Dec 22, 2017 at 10:14
  • 1
    Worked on Ubuntu 18.04.
    – Foreever
    Commented Jan 25, 2019 at 2:57
  • 1
    This is the right answer as of 2023 because the apt install stockfish will not install the latest.
    – AsemRadhwi
    Commented Jun 30, 2023 at 18:09
4

I suggest you simply use this command in your Terminal:

sudo apt-get install stockfish

0
3

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

1

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