After upgrading ubuntu to 22.10 root showing some error

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

this is not working for me

You need to build ROOT from the source code (from scratch) yourself.
With the system’s upgrade came a new GCC (incompatible with the old one), too.

Welcome to the ROOT forum.

On which machine are you running?

With which ROOT version?

How have you installed ROOT?

Can you show which command gives you this error?

It was working properly before the upgrade, but after it started to show this error.

ubuntu 22.10
source code build

baba@baba:~$ root 
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C x86_64-linux-gnu-g++-11   -xc++ -E -v /dev/null 2>&1 | sed -n -e '/^.include/,${' -e '/^ \/.*++/p' -e '}'
Results was:
With exit code 0
   ------------------------------------------------------------------
  | Welcome to ROOT 6.27/01                        https://root.cern |
  | (c) 1995-2022, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on May 27 2022, 10:49:02                 |
  | From heads/master@v6-25-02-1338-g1679bc9525                      |
  | With c++ (Ubuntu 11.2.0-19ubuntu1) 11.2.0                        |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] 

root 6.26

https://root-forum.cern.ch/search?q=ERROR%20in%20cling%3A%3ACIFactory%3A%3AcreateCI()%3A%20cannot%20extract%20standard

thank you

It is not working for me. the same error is coming.
should I reinstall it?

Yes, I would say so.

Hi @_Ab_Ad ,

please check Installing ROOT - ROOT for several ways to install ROOT on Ubuntu (e.g. as a conda package, a snap package, or downloading a pre-built binary for Ubuntu 22).

You probably have to uninstall your current version and install again a version that is appropriate for Ubuntu 22.

Cheers,
Enrico

1 Like

I solved the issue by installing g++ -11.

1 Like