Hi basilean
I tried to install RetroArch via your script in https://github.com/basilean/retroarch_install with VERSION=6.1
I recognised that the script runs without issues but when I start RetroArch in Kodi it crashes and Kodi starts again.
Checking the details I got this log
Code
LibreELEC-RPi5:~ # journalctl -u retroarch.service -b --no-pager
Jun 29 07:15:04 LibreELEC-RPi5 systemd[1]: Starting retroarch.service...
Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: Started retroarch.service.
Jun 29 07:15:12 LibreELEC-RPi5 retroarch[1414]: /storage/retroarch/retroarch: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: retroarch.service: Main process exited, code=exited, status=127/n/a
Jun 29 07:15:12 LibreELEC-RPi5 systemd[1]: retroarch.service: Failed with result 'exit-code'.
As we can see the error it seams that the library libSDL2 is missing. (For information: the script with VERSION=5.0 works without problems and also RetroArch can be started).
I also created this issue in your repo: https://github.com/basilean/retroarch_install/issues/6
If you or anyone have an idea how to solve this let me know please