Where is my thisroot.sh?

Please read tips for efficient and successful posting and posting code

_ROOT Version: root-6.18.04-1
_Platform: .fc31.x86_64
_Compiler: gcc version 9.2.1 20190827 (Red Hat 9.2.1-1) (GCC)

I install root by command
$ sudo yum install root
now somewhere need to source the file thisroot.sh, but I cannot find it.

Hi @shen welcome on the root forum,
the file you are searching for is in root/bin/thisroot.sh .


Dear @Dilicus,
Thanks for your response, I tried command whereis root, and search each fold, none of them has thisroot.sh. [shen@localhost ~] whereis root
root: /usr/bin/root /usr/bin/root.exe /usr/lib64/root /usr/include/root /usr/share/root /usr/share/man/man1/root.1.gz
Am I right?


It seems that you installed the “operating system provided” ROOT version so you probably do NOT need “thisroot.sh” at all (just try to run “root”).

Dear @Wile_E_Coyote,

Root now works well for me, but I want to install allpix2, which need to source thisroot.sh. That’s why I need to find it.


Create a dummy “thisroot.sh” somewhere.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.