Installation of root on MacOS


I am trying to install root v 6.04.02 on my MacOS but my mac has an old OS v-10.6.7 and gcc compiler 4.2.1. Could I install with these setup the latest version of root?

Also when I run ./configure I see one line saying:

Checking for C compiler … clang
Checking for C++ compiler … no C++ compiler clang++ found
configure: C++ compiler MUST be installed
But I have gcc v 4.2.1 installed.


For ROOT 6 you need gcc > 4.7.x or clang (try to install the newest Xcode that exists for your system and then you should also get clang++, you will need at least Xcode 4.x, though).
Otherwise, try ROOT 5.34.