Error msg mixed with welcome msg when getting started in 10.12.4 Sierra

Hey I just installed the pre-compiled version on and when I ran for the first time, I got this:

>root
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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:38:10: fatal error: 'string' file not found
#include <string>
         ^
   ------------------------------------------------------------
  | Welcome to ROOT 6.08/06                http://root.cern.ch |
  |                               (c) 1995-2016, The ROOT Team |
  | Built for macosx64                                         |
  | From tag v6-08-06, 2 March 2017                            |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

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

Can anyone tell me why? I’ve installed the full Xcode and agreed to the new licence agreement of Xcode. Thanks
Btw, I can run .help .license with no errors

Hi,

Did you install the xcode command line tools? xcode-select --install should help.

Axel

Thanks Axel. I basically reinstalled everything related to Xcode and now the error has gone. Thanks

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