Hi,
I’ve installed root v06.06.02 on kubuntu 16.04, but get no graphical output. Root starts ok, but I cannot draw a canvas, open a TBrowser. eg:
root
root [0] new TBrowser
(TBrowser *) 0x2c2c490
… nothing happens. I don’t appear to have other graphical issues (eg I can open xclock or xterm from my konsole). Not sure how to debug, so any help appreciated.
Installation was a little convoluted to get it working with gcc 5.3:
INSTALLDIR=/scratch/HEPsoftware/local
configure --fail-on-missing --enable-genvector --enable-mathmore --enable-minuit2 --enable-python --enable-roofit --enable-tmva --enable-xml --enable-xft --enable-x11 --prefix=$INSTALLDIR
ROOTDIR=$PWD
mkdir …/test
cd …/test
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 $ROOTDIR
make -j 4
make install
[quote=“Pepe Le Pew”]Do you get anything, when you try:
dpkg --list “"|grep -i root-system
dpkg --list "”|grep -i root-plugin
dpkg --list “*”|grep -i libroot[/quote]
Both 5.34 and 6.04 fail to compile for me. With 6.04 I get this:
root-6.04.16/math/mathmore/src/GSLMultiFit.h:146:38: error: ‘struct gsl_multifit_fdfsolver’ has no member named ‘J’
gsl_multifit_gradient(fSolver->J, fSolver->f,fVec);
with 5.34, the main error seems to be:
#4 0x00007f046360b94a in DefaultErrorHandler (level=, abort_bool=, location=0x7f04636e7553 “TVirtualStreamerInfo::Factory”, msg=0x21236a0 “Cannot find the plugin handler for TVirtualStreamerInfo! However $ROOTSYS/etc/plugins/TVirtualStreamerInfo is accessible, Check the content of this directory!”) at /scratch/HEPsoftware/root-5.34.36/core/base/src/TError.cxx:192
not sure it is worth trying to debug these old versions! How can I get hold of 6.07?
and have not had this problem in the past on kubuntu, so either an updated package on my system or something else is causing this problem, but I don’t know how to debug further.
sudo apt-get purge root-system* root-plugin* libroot*[/code] then check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely and finally follow the “in-place” instructions (make sure that you do not have “${HOME}/.rootrc”, “${HOME}/rootlogon.C”, “${HOME}/rootlogoff.C”, “${HOME}/rootalias.C” files): Trouble Installing
sudo apt-get purge root-system* root-plugin* libroot*[/code] then check that the “/usr/lib/i386-linux-gnu/root5.34” and the “/usr/lib/x86_64-linux-gnu/root5.34” subdirectories disappeared completely and finally follow the “in-place” instructions (make sure that you do not have “${HOME}/.rootrc”, “${HOME}/rootlogon.C”, “${HOME}/rootlogoff.C”, “${HOME}/rootalias.C” files): https://root-forum.cern.ch/t/trouble-installing/18046/11[/quote]
ok, good - some progress! I ran all the commands (though my system was already up to date and free of root from the repos), unpacked the tarball of v6.06.04, then did an “in place” install:
./configure --prefix=$INSTALLDIR
make
make install
Now I do get a TBrowser, TCanvas etc, but get the problem I first had when trying to compile or do anything else, which I understand is to do with gcc v5.3:
root [1] 5*6
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.
…which is why I was using cmake in the first place. The cmake command I was using:
cmake -DCMAKE_INSTALL_PREFIX=$INSTALLDIR -DCMAKE_CXX_FLAGS=-D_GLIBCXX_USE_CXX11_ABI=0 $ROOTDIR
make -j 4
make install
means I don’t get the cling library error, but I also don’t get graphics.
Well, not sure what changed, but now it seems to work even with cmake. I moved to 6.6.4 and rearranged the options slightly and now everything is working. Not very satisfying as I didn’t really understand the solution, but I’m happy to accept a working root for now! Thanks for the help and suggestions.