But when I tried to run ROOT from another terminal window, it won’t run.
Command 'root' not found, but can be installed with:
sudo snap install root-framework
So I tried to set it up from new windows. It works after running the source... command, but not in new windows.
Setting the environment like this worked in my other systems. I can’t figure out what’s wrong…
Any idea on how to solve this problem will be appreciated.
the source ../root_install/bin/thisroot.sh is valid for the current terminal session only. If you open a new terminal Window, you have to call source ../root_install/bin/thisroot.sh again
Thanks @bellenot for the quick response.
But in earlier version (v6.16 to be exact) the command source ROOT_DIRECTORY/bin/thisroot.sh in a new window worked. Is this behavior specific to this version of ROOT? Can you give me any idea how to implement it?
What do you mean? As I said, you have to do it in each new window. And it was the case also in older versions of ROOT. If you don’t want to call thisroot.sh every time, you can add it in your .basrc
Thanks, @bellenot. Now it works. But in my other system I just checked this line is not in .bashrc, I had just run it from a new window and that was it.
Although it is working fine in this one. Thanks a lot again.