Thanks Ganis for your reply.
I successfully compiled and installed ROOT, but there is one more problem. Either setting environment variables or not, I’m not able to launch root:
carlo@carlo-laptop:~$ root -l
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory
The problem is that the linker does not know where the new libraries are.
This is because dlopen searches only in /lib and /usr/lib, so one has to set either the LD_LIBRARY_PATH or to add /usr/local/lib/root to /etc/ld.so.conf and run /sbin/ldconfig again.
I suggest you try the second option: just create a file root.conf with the line /usr/local/lib/root inside; it should look like
$ cat root.conf
/usr/local/lib/root
Then copy the file under /etc/ld.so.conf.d/ with sudo and then run ‘sudo /sbin/ldconfig’.
I agree that the documentation is not completely clear on this point; we will try to improve it.