ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! Invoking:

I’m using Ubuntu 20.04.
I installed Root following the steps written into the website. When I try to launch root, this message compares:

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C x86_64-linux-gnu-g+±7 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’
Results was:
With exit code 0

| Welcome to ROOT 6.28/02 https://root.cern |
| (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Mar 21 2023, 11:11:48 |
| From tags/v6-28-02@v6-28-02 |
| With c++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 |

Try ‘.help’/‘.?’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/‘.q’

root [0]

How can I fix this error? Thanks in advance for the reply

You try to use a ROOT binary distribution for “Ubuntu 18.04 / GCC 7.5”,
It will not work on “Ubuntu 20.04 / GCC 9.4”.

The ROOT Team provides ready-to-use binary distributions for some systems (see “Download a pre-compiled binary distribution” therein), including various Ubuntu versions, which you just need to download and unpack.

For Ubuntu 20.04 / x86_64 / GCC 9.4: https://root.cern/download/?C=M;O=A;P=*[uU][bB][uU][nN][tT][uU]*20*

I installed a ROOT binary distribution for Ubuntu 20.04, but there is still the error:

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C x86_64-linux-gnu-g+±9 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’
Results was:
With exit code 0

| Welcome to ROOT 6.28/02 https://root.cern |
| (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for linuxx8664gcc on Mar 21 2023, 11:11:48 |
| From tags/v6-28-02@v6-28-02 |
| With c++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 |

Try ‘.help’/‘.?’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/‘.q’

root [0]

cat /etc/issue.net
g++ --version

Thanks, I fixed the problem! I thought I had ubuntu 20.04, but I have Ubuntu 22.04! Thank you so much again!

For Ubuntu 22.04 / x86_64 / gcc 11.3: https://root.cern/download/?C=M;O=A;P=*[uU][bB][uU][nN][tT][uU]*22*

1 Like

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