I’m trying to install a ROOT binary on macOS High Sierra (macOS 10.13).
I download the appropriate ROOT binary for my OS: https://root.cern.ch/download/root_v6.10.08.macosx64-10.13-clang90.dmg
I run the installer and it completes successfully, installing in /Applications/root_v6.10.08/. Following the instructions in the README, I do:
$ cd /Applications/root_v6.10.08/
$ . bin/thisroot.sh
At this point, ROOT should just work (I think), but when I try to launch it:
$ root
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -O2 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
With exit code 256
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
^
input_line_3:36:10: fatal error: 'string' file not found
#include <string>
^
------------------------------------------------------------
| Welcome to ROOT 6.10/08 http://root.cern.ch |
| (c) 1995-2017, The ROOT Team |
| Built for macosx64 |
| From tag v6-10-08, 16 October 2017 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
input_line_7:1:10: fatal error: 'iostream' file not found
#include <iostream>
^
root [0]
So it launches but something is clearly wrong, and I’m unable to actually use it for anything useful, it just spews out more errors. Help please!