ROOT 6.08/06 on Ubuntu 16.10 error "ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!"

Hi there

I’m encountering an unfamiliar error when attempting to run ROOT 6.08/06. I’ve installed and compiled many versions of ROOT many times previously.

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C g++-5  -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: file
      '/usr/lib/gcc/x86_64-linux-gnu/6.2.0/../../../../include/c++/6.2.0/new'
      modified since it was first processed
#include <new>
         ^
   ------------------------------------------------------------
  | Welcome to ROOT 6.08/06                http://root.cern.ch |
  |                               (c) 1995-2016, The ROOT Team |
  | Built for linuxx8664gcc                                    |
  | From tag v6-08-06, 2 March 2017                            |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
   ------------------------------------------------------------

root [0]

Attempts to use ROOT in this state result in errors like the following:

root [0] new TBrowser
IncrementalExecutor::executeFunction: symbol '_ZN5cling7runtime6gClingE' unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?

I’ve installed the required and optional prerequisites and am using precompiled ROOT root_v6.08.06.Linux-ubuntu16-x86_64-gcc5.4.tar.gz.

sudo apt-get -y install git
sudo apt-get -y install dpkg-dev
sudo apt-get -y install cmake
sudo apt-get -y install g++
sudo apt-get -y install gcc
sudo apt-get -y install binutils
sudo apt-get -y install libx11-dev
sudo apt-get -y install libxpm-dev
sudo apt-get -y install libxft-dev
sudo apt-get -y install libxext-dev

sudo apt-get -y install gfortran
sudo apt-get -y install libssl-dev
sudo apt-get -y install libpcre3-dev
sudo apt-get -y install xlibmesa-glu-dev
sudo apt-get -y install libglew1.5-dev
sudo apt-get -y install libftgl-dev
sudo apt-get -y install libmysqlclient-dev
sudo apt-get -y install libfftw3-dev
sudo apt-get -y install libcfitsio-dev
sudo apt-get -y install graphviz-dev
sudo apt-get -y install libavahi-compat-libdnssd-dev
sudo apt-get -y install libldap2-dev
sudo apt-get -y install python-dev
sudo apt-get -y install libxml2-dev
sudo apt-get -y install libkrb5-dev
sudo apt-get -y install libgsl0-dev
sudo apt-get -y install libqt4-dev

Would anyone have any ideas about what might be going wrong? Many thanks for any thoughts

You are trying to use binaries which seem to be built on a Ubuntu 16.04(.1?) LTS with gcc 5.4.0 on your Ubuntu 16.10 with gcc 6.2.0.
I don’t think it will work.
You need to build your ROOT from scratch (i.e. from the source code) yourself.