23

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.

22

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.

  • 1
    This installs an old copy of Stockfish. – HelloWorld Oct 22 '15 at 1:04
  • Is studo a typo for sudo? – Caridorc Jun 28 '16 at 21:29
8

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
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

3

I suggest you simply use this command in your Terminal:

sudo apt-get install stockfish

3

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
1

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
  • 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
  • 1
    Worked on Ubuntu 18.04. – Foreever Jan 25 '19 at 2:57

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