New MAC 10.14, problem running root

_ROOT Version:6.18.00
_Platform: MAC OS 10.14.5

installed XCode, did license agreement, then installed root
(tried both tarball and .dmg)

both times get this:

~> root
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
  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
warning: no such sysroot directory: '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk'
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
input_line_3:37:10: fatal error: 'string' file not found
#include <string>
  | Welcome to ROOT 6.18/00         |
  |                               (c) 1995-2019, The ROOT Team |
  | Built for macosx64 on Jun 25 2019, 09:22:23                |
  | From tags/v6-18-00@v6-18-00                                |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |

input_line_7:1:10: fatal error: 'iostream' file not found
#include <iostream>
root [0] .q

Help appreciated.


@amadio Any idea what can be failing here?

This is probably due to XCode or the command line tools not being installed.

XCode is installed.
As far as I know the command line tools are also installed, sicen when I do

it runs and just complains that there are no input files.

so, what else am I forgetting?

Did you run xcode-select --install? You should also try to install the package that gives back headers in /usr/include.

no, I had not done xcode-select --install ! I’ve just done that and it works fine now.
I do not recall doing it last time I set up root (but that was a long time ago…)
What does this do?

This installs the command line tools.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.