ROOT not working as calculator!

Hi,

I am using ROOT version 6.06/08. However in the ROOT prompt when I am giving basic commands like 1+1 it doesn’t return me any value. This is what it looks like

root [0] 1+1
IncrementalExecutor::executeFunction: symbol ‘_ZN5cling10printValueEPKi’ unresolved while linking [cling interface function]!
You are probably missing the definition of cling::printValue(int const*)
Maybe you need to load the corresponding shared library?
(int) Error in ValuePrinter: missing output string.

Hello,

this is usally a sign of an installation gone bad. How did you install (or build) ROOT and on what platform?

Cheers,
Danilo

Hi, I am using Ubuntu 16.04. I followed the following steps to install ROOT

  1. ./configure inside the ROOT directory.

  2. make

  3. source bin/thisroot.sh

The suggestion these days is to build ROOT with CMake:
https://root.cern.ch/building-root

You cannot use the old “./configure” based method with ROOT 6. You must use CMake 3.4.3 or newer.

so do I reinstall ROOT again?

Yes, install ROOT with CMake. (You might as well upgrade to 6.14.04 at the same time.)

Do I need to remove the previous installation of ROOT v6.06/04 or I should just install the new ROOT v6.14? And by remove how to uninstall any previous versions of ROOT?

After giving the command

cmake --build . – target install

I am getting the following error:


[100%] Built target hist2workspace
Install the project…
– Install configuration: “RelWithDebInfo”
– Up-to-date: /usr/local/lib
CMake Error at cmake_install.cmake:36 (file):
file INSTALL cannot set permissions on “/usr/local/lib”

Makefile:115: recipe for target ‘install’ failed
make: *** [install] Error 1

but root is working fine

Hiding this as per Newbie section rules.