Hi, thank you so much for the reply!
I get the error message above compiling with
cmake ../root-6.18.04/ -DCMAKE_INSTALL_PREFIX=/usr/local/root -Droofit=ON -Dtmva=ON -Dminuit2=ON -Dpython=ON
And the same happens if I set all those options to OFF. Sorry, I was not clear about this.
I am trying to install a new version of Root in different directories than the previous. This shouldn’t cause the files to conflict. Or should I uninstall the previous version of Root before compiling a new one?