Which ROOT version works on OpenSUSE LEAP 15.5

ROOT is a data analysis framework developed at CERN. However, it has no official support for OpenSUSE LEAP 15.5. Here’s how to get it working:

Download

root_v6.25.01.Linux-ubuntu18-x86_64-gcc7.5.tar.gz

from https://root.cern/download/. This version happens to be built with GCC 7.5, which is the default compiler on OpenSUSE LEAP 15.5. Also, the Glibc version matches.

However, you need to apply the fix from How to fix ROOT ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!:

in case you have sudo access

sudo ln -s $(which g++) /usr/local/bin/x86_64-linux-gnu-g++-7

in case you don’t have sudo access

ln -s $(which g++) $HOME/usr/bin/x86_64-linux-gnu-g++-7

and ensure you have $HOME/usr/bin in your $PATH so that ROOT can find the symlinked compiler.