- Blind mode tutorial
lichess.org
Donate

Lichess Database and PGN splitter in Linux

i am quite new to linux, and when i open the last database lichess uploaded in scid i get an error. further down the page i can se a link to a github app that is called pgnsplitter. the thing is the source code for linux isnt compiled and other than that it only has a windows executable. how do i compile that code in linux? i used g++ and then chose PgnSplit.cs but it gives me error. so i hope a linux user that knows how to compile code and files can help me.

i am quite new to linux, and when i open the last database lichess uploaded in scid i get an error. further down the page i can se a link to a github app that is called pgnsplitter. the thing is the source code for linux isnt compiled and other than that it only has a windows executable. how do i compile that code in linux? i used g++ and then chose PgnSplit.cs but it gives me error. so i hope a linux user that knows how to compile code and files can help me.

It's .NET, so if it compiles on Linux, you'd need Mono: https://www.mono-project.com/

I'd rather try pgn-extract. Though I have never tried it on such huge files.
There's probably already a package available for your distro, otherwise it's easy to compile from source:
https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/

It's .NET, so if it compiles on Linux, you'd need Mono: https://www.mono-project.com/ I'd rather try pgn-extract. Though I have never tried it on such huge files. There's probably already a package available for your distro, otherwise it's easy to compile from source: https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/

I tried pgn extract but it was too long to wait and power went off.
i got mono but what command should i exactly run
i tried mono PgnSplit.sln failed --> Cannot open assembly 'PgnSplit.sln': File does not contain a valid CIL image.
and xbuild PgnSplit.sln same here but other error
i am no expert in this stuff, i barely managed to compile stockfish 11

I tried pgn extract but it was too long to wait and power went off. i got mono but what command should i exactly run i tried mono PgnSplit.sln failed --> Cannot open assembly 'PgnSplit.sln': File does not contain a valid CIL image. and xbuild PgnSplit.sln same here but other error i am no expert in this stuff, i barely managed to compile stockfish 11

i am going back to pgn-extractor, see you in 5 hours

i am going back to pgn-extractor, see you in 5 hours

yeah, i got it but wich command should i use, looked into the pgn-extract -h and didnt find the option to make it smaller, only options to create more by certain filters e.g. games that end in stalemate

yeah, i got it but wich command should i use, looked into the pgn-extract -h and didnt find the option to make it smaller, only options to create more by certain filters e.g. games that end in stalemate

I was thinking about -#num splitting by number of games and -s for silent mode.

There is also split command, but you likely end up with file split in the middle of the game. You can manually edit those games though.

I was thinking about -#num splitting by number of games and -s for silent mode. There is also split command, but you likely end up with file split in the middle of the game. You can manually edit those games though.

Maybe use Python to split files, there's a good library for all chess-related stuff in Python. https://github.com/niklasf/python-chess

What do you need as input and output for PGN splitting?

Maybe use Python to split files, there's a good library for all chess-related stuff in Python. https://github.com/niklasf/python-chess What do you need as input and output for PGN splitting?

Using mono on PgnSplit.exe should work

Using mono on PgnSplit.exe should work

This topic has been archived and can no longer be replied to.