ERROR in cling: cannot extract standard library include paths!


I am trying to install ROOT v6.20.02 from binary distributions. It gives me the following error (when I want to run ROOT)

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

*** Break *** segmentation violation

(I have dual boot and my OS is Ubuntu 18.04.4 )
I appreciate any help,
Thank you very much

1 Like

Do you have a system compiler, eg clang++ or g++?

How can I find out what kind of compiler system I have?
(I am so sorry but It is my first time using Ubuntu etc)

sudo apt-get install gcc g++

So, gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

So, try to run ROOT again.

1 Like

I think It is done because I can see ‘’ Welcome to root 6.20/02 […]etc’’

Thank you very very much!

Post the output of:
ldd ${ROOTSYS}/lib/*.so | grep "found" | sort -u

First execute:
source /path/to/root/bin/
and then the “ldd ...” line (but please post the output as text).

You need at least (then try “ldd ...” again):
sudo apt-get install gfortran libblas-dev libcfitsio-dev

When I executed the first one:

bash: /path/to/root/bin/ No such file or directory

(I want to notice that I have done the above:
gedit .bashrc
And then I add into the bash the follow:
export ROOTSYS=/home/elita/Programs/root
export PATH=$ROOTSYS/bin:$PATH

Is that the problem?)

Post the output of:

sudo apt-get install gfortran libblas-dev libcfitsio-dev libcurl4-dev
source /home/elita/Programs/root/bin/
ldd ${ROOTSYS}/lib/*.so | grep "found" | sort -u

For the first execute asked for a password, I put it and it did some things.
Then I continued with the next executions and the result is: => not found => not found => not found => not found => not found => not found => not found

sudo apt-get install libcurl4-dev libgsl-dev libmysqlclient-dev libpq-dev libpythia8-dev

Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libcurl4-dev is a virtual package provided by:
libcurl4-openssl-dev 7.58.0-2ubuntu3.8
libcurl4-nss-dev 7.58.0-2ubuntu3.8
libcurl4-gnutls-dev 7.58.0-2ubuntu3.8
You should explicitly select one to install.

E: Package ‘libcurl4-dev’ has no installation candidate

Try “libcurl4-openssl-dev” instead of “libcurl4-dev” (afterwards, “ldd ...” again, of course).

For the first It shows command not found

What “command” do you mean?

That’s exactly what it wrote for libcurl4-openssl-dev

libcurl4-openssl-dev: command not found

This is a name of a package which you need to install.

Once you install all these “missing” packages, try “ldd ...” again.