Dump macOS, install Ubuntu.
BTW. Use “CMake / make” with ROOT 6 (the classical “configure / make” based method is known to be broken, i.e. not supported any more).