O2 installation failed on ROOT

I have an issue installing O2, failed on the ROOT installation every time.

I have uninstalled the root (
which root

root not found),
here is the log:

Never mind, had to export the correct paths
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)