Hi,
When I run a python script, I get an error. I tried to configure Root with python, but I am not sure if I did it. I type python in my shell and the following
import sys
from ROOT import gROOT
Traceback (most recent call last):
File “”, line 1, in
File “ROOT.py”, line 24, in
import cppyy
File “cppyy.py”, line 60, in
import libPyROOT as _backend
ImportError: ./libPyROOT.so: undefined symbol: gCling
A similar question was asked on May 16, 2016 by another user but received no answer.
My own build (but I am not sure if I built it properly)
I did ./configure --enable-python --with-python-incdir=/usr/local/include/python2.7/ --with-python-libdir=/usr/lib/python2.7/config-x86_64-linux-gnu/
and then make -j4 and source bin/thisroot.sh
and defined export ROOTSYS, PATH and PYTHONPATH in my .bashrc