# Error in cling::CIFactory::createCI() when opening ROOT

**URL:** <https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469>\
**Category:** Newbie\
**Tags:** cling\
**Created:** [October 23, 2019, 1:27pm UTC](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469 "2019-10-23T13:27:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![filipavalente](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/0ea827/32.png) [@filipavalente](https://root-forum.cern.ch/u/filipavalente)\
**Post date:** [October 23, 2019, 1:27pm UTC](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469/1 "2019-10-23T13:27:18Z")

</div>

Hello,

When I type `root` in the terminal to open it, I see the following error message before ROOT opens:

```auto
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C x86_64-linux-gnu-g++-7 -O3 -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

```

This error message also appears when I run the .exe file of a C++ program with a ROOT object in it.

I did check out [this thread](https://root-forum.cern.ch/t/error-in-cling-createci-cannot-extract-standard-library-include-paths-invoking-lc-all-c-x86-64-linux-gnu-g-7/35417), which appears to show the same exact error as mine. The original poster solved their problem by updating/installing some missing prerequisites. I checked and all the prerequisites mentioned [here](https://root.cern.ch/build-prerequisites#ubuntu) (required and optional) are installed and updated.

I am using ROOT 6.14/06 and ubuntu 19.04.

Does anyone know how I can solve it? Do I have to re-build ROOT?

Thank you,  
Filipa

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [October 24, 2019, 9:20am UTC](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469/2 "2019-10-24T09:20:17Z")

</div>

@amadio took care of the ticket you mentioned so he should be able to help you with this.

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [October 24, 2019, 11:06am UTC](https://root-forum.cern.ch/t/error-in-cling-createci-when-opening-root/36469/3 "2019-10-24T11:06:52Z")

</div>

Not really, I improved the check to need only `sed`, but in the end the problem was that either `awk` or `grep` were missing in that person’s computer. Please ensure that you have both installed on your machine, or try to use a newer version of ROOT and ensure you have `sed` installed. Cheers,
