Skip to content

Latest commit

 

History

History
85 lines (65 loc) · 1.72 KB

File metadata and controls

85 lines (65 loc) · 1.72 KB

Installing Stockfish Chess Engine

Quick Installation

Since you're on Fedora, run:

sudo dnf install stockfish

Then verify the installation:

python test_setup.py

Alternative Installation Methods

Package Managers

Fedora/RHEL/CentOS:

sudo dnf install stockfish

Ubuntu/Debian:

sudo apt update
sudo apt install stockfish

Arch Linux:

sudo pacman -S stockfish

macOS with Homebrew:

brew install stockfish

Manual Installation

  1. Download Stockfish:

  2. Extract and Install:

    # Example for manual installation
    wget https://stockfishchess.org/files/stockfish_15_linux_x64_avx2.zip
    unzip stockfish_15_linux_x64_avx2.zip
    sudo cp stockfish_15_linux_x64_avx2/stockfish_15_linux_x64_avx2 /usr/local/bin/stockfish
    sudo chmod +x /usr/local/bin/stockfish
  3. Update Configuration: If you install Stockfish in a custom location, update the path in Clean.py:

    STOCKFISH_PATH = Path("/path/to/your/stockfish")

Troubleshooting

Command not found:

  • Make sure Stockfish is in your PATH
  • Check the STOCKFISH_PATH variable in Clean.py
  • Run which stockfish to find the installed location

Permission denied:

  • Make sure the Stockfish binary is executable: chmod +x /path/to/stockfish

Version compatibility:

  • This project works with Stockfish 14+
  • Check your version: stockfish --version

Verifying Installation

Run the test script to verify everything is working:

python test_setup.py

You should see:

✅ Stockfish found at: /usr/bin/stockfish