Error: cannot open file "TMVA/DataLoader.h"

Your “root-config --has-tmva” must return “yes” and then for “TMVA/DataLoader.h” you need ROOT 6.