I have a sort of strange problem. I am compiling a project with ROOT, and I’ve found that even though there are no compile errors, if I run the program while logged in as root (not ROOT), I get an error that tells me that cannot be found.

After working at this for a while, I found that while root-config works normally, the command is unknown if I’m logged in as root.

Does anyone know anything about this problem?

The superuser of my computer (root) knows the command root-config.

Did you check whether in root’s shell the environment variable ROOTSYS is correct?


Also check that PATH and LD_LIBRARY_PATH are as expected.