lightvector / KataGo

GTP engine and self-play learning in Go
https://katagotraining.org/
Other
3.47k stars 563 forks source link

linux eign cannot run #524

Open simin75simin opened 3 years ago

simin75simin commented 3 years ago

os: ubuntu 18.04 downloaded the newest eigen version (not bs29) and this happened when i tried to run it: ./katago: error while loading shared libraries: libzip.so.5: cannot open shared object file: No such file or directory

lightvector commented 3 years ago

Try sudo apt install libzip-dev?

simin75simin commented 3 years ago

tried it, redownloaded the linux eign 64bit one, same error.

lightvector commented 3 years ago

That's a little strange, since I've gotten things to work on Ubuntu 18 before myself. But I guess what may be happening is that your version of libzip is a different version or something, like libzip.so.[some other number than 5].

If you do have all the necessary libraries, just perhaps different versions, for now, you could just try building from source. On linux, it's actually not that hard:

git clone https://github.com/lightvector/KataGo.git
cd KataGo/cpp
cmake . -DUSE_BACKEND=EIGEN
make

And use sudo apt install if you need any packages, like libeigen3-dev, libzip-dev, zlib1g-dev

https://github.com/lightvector/KataGo/blob/master/Compiling.md

I've been told there are better ways to manage release of linux executables (flatpak? appimage?), I may try one of those for a future release. But for now, does the above work for you?