You apparently have some version of ROOT installed in “system directories” ("/usr/lib/x86_64-linux-gnu/").
You must “completely remove” (“purge”) all “system-provided” ROOT related packages (this includes any “official” packages that originate from your operating system’s repositories as well as any version that you yourself built).
Then configure and make your new version of ROOT from scratch.
Note: this is explicitly written in [url=https://root-forum.cern.ch/t/missing-canvas/17664/17 of the old posts that I gave you[/url].
PS: That g++ line was NOT the result of the command make after the execution my “configure” line (yes, I can clearly see that there’s something missing in that line, which must have had been there if ROOT was configured according to my “configure” line).
Actually in usr/lib/x86_64-linux-gnu/ there is the directory root5.34, but how do I completely delete root & everything related to it in order to configure and make a new version of it? Should I simply delete that directory (and the one that contains root’s source), or something more is required?
Done. But the root5.34 directory is still there (almost empty. It only contains 2 .so files “Physics” & “Postcript”). Neither was removed the directory “root”, which contains root’s source files. Is it correct? What should I do next?
Those two libraries are still there.
Apparently now on my pc I have these files/directories regarding root (or, at least, these are the “visible” ones):
[ul]
root_v5.34.23.source.tar
root (directory created once .tar was unpacked)
root5.34 (directory in urs/lib/x86_64-linux-gnu/)
[/ul]
Nothing changed.
While executing the command, I get a list of:
Package ‘***’ is not installed, so not removed
So probably the previous executions went well, but I cannot remove those two libraries; even if I try to do it directly from the root5.34 directory. Should the directory root, with the source files, be removed?
Well, you could try to install and then purge everything again:
sudo apt-get install libroot-math-physics5.34 libroot-math-physics-dev libroot-graf2d-postscript5.34 libroot-graf2d-postscript-dev
sudo apt-get purge root-system* root-plugin* libroot*
Afterwards you should get an empty list when you try:
sudo dpkg --list “*”|grep libroot
Now the root5.34 directory is gone, and I do have the empty list! I still have the root directory, but I think it’s ok because it simply contains files extracted from root.**.tar. Should the past versions of root on my machine have been deleted now? What shall I do to install root in the proper way ?
Tomorrow I’ll try to install root again, following what has been said in those topics and what’s said in the guide.
Actually I still have the root directroy, should I delete it? (In this case, rmdir root it’s unsuccessful. What should I do?)
My last question is: which installation method should be preferred?
Following those instructions I was able to install root successfully. Now, when I try to compile using root-config --cflags --glibs I don’t get any error.
Though there is a problem: when I try to run root (typing root) I get:
The program 'root' is currently not installed. You can install it by typing:
sudo apt-get install root-system-bin
unless I go in v5-34-00-patches directory and do . bin/thisroot.sh; after this I can run root without any problem. How can I make permanent this installation?