I don’t know what to say to this, it is installed and runnig in my MXLinux without anything else except the normal follow up for this kind of installations on Scid …
Not sure if this solves your issue but lc0 is available in aur
$ yay -Ss LeelaChess
aur/lc0 0.26.1-1 (+0 0.00)
UCI-compliant chess engine designed to play chess via neural network, specifically those of the LeelaChessZero project.
So try install like this yay -S lc0
I gave it shot, but didn’t proceed beyond the first stage, see screenshot below
$ yay -S lc0
:: There are 4 providers available for opencl-driver:
:: Repositoryextra
1) opencl-mesa 2) opencl-nvidia :: Repositorycommunity
3) beignet 4) intel-compute-runtime
Enter a number (default=1): ^C
[keos@keos-pc ~]$ LANG=C yay -S lc0
:: There are 4 providers available for opencl-driver:
:: Repositoryextra
1) opencl-mesa 2) opencl-nvidia :: Repositorycommunity
3) beignet 4) intel-compute-runtime
Enter a number (default=1): 1
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:5] ocl-icd-2.2.12-4 libclc-0.2.0+589+9aa6f35-2 compiler-rt-10.0.1-1 clang-10.0.1-1 opencl-mesa-20.1.6-1
[Repo Make:2] opencl-headers-2:2.2.20170516-3 gtest-1.10.0-1
[Aur:1] lc0-0.26.1-1
==> Remove make dependencies after install? [y/N]
If so, I’d recommend you pick one forum so you don’t split effort, and then people on one or the other get the full picture rather than just the part you show them.
This file is no longer available from that location. The default neural network file 703350.pb.gz is available in the Windows zip file though. You’ll need to extract in and update the PKGBUILD to use it. If that’s a bit too complicated for you, stick to Stockfish. For all intents and purposes any chess engine for the average chess player is going to be more than useful enough and you wouldn’t be able to appreciate the difference between stockfish and lc0.
EDIT:
To explain a bit more thoroughly, you’ll need to download one of the windows zip files from this page: https://lczero.org/play/download/
Inside the zip file is 703350.pb.gz, this is the file you’re currently having issues downloading. You’ll need to place this in the same folder as the PKGBUILD and use its filename instead of the URL in there. From there, rerun makepkg -s. Somewhat in the middle of something at the moment, but if someone has the time to give more of a play by play it might help Keos.
OK my friend, after taking a few mins to look around I found an alternative download to the weight file and updated the PKGBUILD. Use the following and you should be right. I was able to build lc0 without a problem
# Maintainer: Ivan Marquesi Lerner <ivanmlerner@protonmail.com>
pkgname=lc0
pkgver=0.26.1
pkgrel=1
_run="run1"
_nnid=42850
pkgdesc="UCI-compliant chess engine designed to play chess via neural network, \
specifically those of the LeelaChessZero project."
arch=('x86_64')
url="https://lczero.org/"
license=('GPL3')
depends=('ocl-icd' 'zlib' 'opencl-driver')
makedepends=('meson' 'eigen' 'opencl-headers')
checkdepends=('gtest')
optdepends=("cudnn: Neural network library for use with nvidia GPUs")
install=lc0.install
source=("$pkgname"
"$pkgname-$pkgver.tar.gz::https://github.com/LeelaChessZero/$pkgname/archive/v$pkgver.tar.gz"
"lczero-common-master.tar.gz::https://github.com/LeelaChessZero/lczero-common/archive/master.tar.gz"
"weights_${_run}_${_nnid}.pb.gz::https://training.lczero.org/get_network?sha=00af53b081e80147172e6f281c01daf5ca19ada173321438914c730370aa4267")
md5sums=('8ef8809da2c627dd2472859b157bb408'
'89cb56d60740c622db63f4daeef4b70f'
'e8eda64758da58c6a82126b9dc7c69ff'
'e7c9e1abec8d859ffdbc89e18340c254')
noextract=('weights_${_run}_${_nnid}.pb.gz')
prepare() {
cp -PRu "$srcdir/lczero-common-master/proto" "$srcdir/$pkgname-$pkgver/libs/lczero-common/"
rm -dr "$srcdir/lczero-common-master"
rm -f "$srcdir/$pkgname-$pkgver/build-cl.cmd"
rm -f "$srcdir/$pkgname-$pkgver/build-cuda-ninja.cmd"
rm -f "$srcdir/$pkgname-$pkgver/build-cuda.cmd"
rm -f "$srcdir/$pkgname-pkgver/install_openSUSE_lc0.sh"
rm -f "$srcdir/$pkgname-pkgver/windows_build.md"
}
build() {
cd "$pkgname-$pkgver"
sh build.sh
}
check() {
cd "$pkgname-$pkgver/build/release"
gtester chessboard_test
gtester encoder_test
gtester hashcat_test
gtester optionsparser_test
gtester position_test
gtester syzygy_test
}
package() {
install -Dm755 "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm755 "$srcdir/$pkgname-$pkgver/build/release/$pkgname" "$pkgdir/usr/lib/$pkgname/$pkgname"
install -Dm644 "$srcdir/weights_${_run}_${_nnid}.pb.gz" "$pkgdir/usr/lib/$pkgname/weights_${_run}_${_nnid}.pb.gz"
}
Once you have downloaded that file from a terminal in the directory you downloaded it to, you can install it with sudo pacman -U lc0-0.26.1-1-x86_64.pkg.tar.zst
it was right to the dowloads section but it can’t be extracted
and later by the terminal:
keos@keos-pc ~]$ sudo pacman -U lc0-0.26.1-1-x86_64.pkg.tar.zst
[sudo] password for keos:
loading packages...
error: 'lc0-0.26.1-1-x86_64.pkg.tar.zst': could not find or read package
[keos@keos-pc ~]$
i tried again with another aplication/option by right click … and it says the extraction was completed (it create a new file at the download section: ‘usr’).
Then i apply again the command but:
[keos@keos-pc ~]$ sudo pacman -U lc0-0.26.1-1-x86_64.pkg.tar.zst
[sudo] password for keos:
loading packages...
error: 'lc0-0.26.1-1-x86_64.pkg.tar.zst': could not find or read package
[keos@keos-pc ~]$