Cannot extract standard library include paths!

Hi
I get the error message “cannot extract standard library include paths!” when launching ROOT.
I did read all similar messages in the forum but I dodn’t find a solution working for me.

My platform is macOS High Sierra Version 10.13.1

I installed both ROOT and Xcode from scratch today.

ROOT is v6.12.04 (pro version). I downloaded the binary (dmg file)
Xcode is version 9.2 (of course I agreed the license etc.)

thank you for help
Francesca

2 Likes

May be try:

$ source where_root_is_installed/bin/thisroot.sh

This script defines $ROOTSYS etc …

I had dine it already (I followed all the instructions in the README)

btw I am using csh, so it it is:
source where_root_is_installed/bin/thisroot.csh

I also tried from bash:
./where_root_is_installed/bin/thisroot.sh

but this didn’t work at all. I got the message:
./thisroot.sh: line 33: ${(%):-%N}: bad substitution

Does it work when you do:

$ source where_root_is_installed/bin/thisroot.csh

Is $ROOTSYS defined afterwards ?

instead of source it might be " ." (dot)

$ . where_root_is_installed/bin/thisroot.csh
[macfrc:/] cavallo% ls -l $ROOTSYS
total 56
-rw-r--r--     1 14806  admin  26488 Dec 13 08:27 LICENSE
drwxr-xr-x    13 14806  admin    442 Dec 13 09:11 README
drwxr-xr-x     3 14806  admin    102 Dec 13 09:11 aclocal
drwxr-xr-x    42 14806  admin   1428 Jan  9 10:34 bin
drwxr-xr-x     8 14806  admin    272 Dec 13 09:11 cmake
drwxr-xr-x     4 14806  admin    136 Dec 13 09:11 config
drwxr-xr-x     3 14806  admin    102 Dec 13 09:11 emacs
drwxr-xr-x    29 14806  admin    986 Dec 13 09:11 etc
drwxr-xr-x    62 14806  admin   2108 Dec 13 09:11 fonts
drwxr-xr-x     3 14806  admin    102 Dec 13 09:11 geom
drwxr-xr-x   447 14806  admin  15198 Dec 13 09:11 icons
drwxr-xr-x  1668 14806  admin  56712 Jan  9 10:34 include
drwxr-xr-x   363 14806  admin  12342 Jan  9 10:34 lib
drwxr-xr-x     4 14806  admin    136 Dec 13 09:11 macros
drwxr-xr-x     3 14806  admin    102 Dec 13 09:11 man
drwxr-xr-x   115 14806  admin   3910 Dec 13 09:12 test
drwxr-xr-x     3 14806  admin    102 Dec 13 09:11 tmva
drwxr-xr-x    69 14806  admin   2346 Dec 13 09:12 tutorials
[macfrc:/] cavallo% 
[macfrc:/] cavallo% 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.12/04                http://root.cern.ch |
  |                               (c) 1995-2017, The ROOT Team |
  | Built for macosx64                                         |
  | From tag v6-12-04, 13 December 2017                        |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

input_line_9:1:10: fatal error: 'iostream' file not found
#include <iostream>

have you done:

$ xcode-select --install

?

2 Likes

:+1: !!
that was the solution, thank you!!

Seeing how many entries are in the forum with this or similar subjects
and how many different causes this problem can have, I suggest you
to add an entry in the FAQs.

I am very happy for the moment!
Thank you again!
Francesca

Good :slight_smile:
Indeed we put it here.

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