Root for batch jobs at cern

When I submit a job to batch at CERN all environmental variables necessary for ROOT are empty. There is an error trying to run a binary that depends on ROOT

error while loading shared libraries: cannot open shared object file: No such file or directory

Can I access root at batch by properly setting the environmental variables and what particular values should I set?


this unfortunately it’s not a ROOT question. I am sure the environment can be properly set with a script executed before invoking your program.


Dynamically linked applications are great until they aren’t :slight_smile:

Depending on what you are trying to do, Go-HEP/rootio (that can produce completely statically linked programs, so no env. variables required) could fit the bill. (You’d ‘just’ need to learn Go)

Let me know.

1 Like

I managed to solve the problem by copying the complete LD_LIBRARY_PATH from my local environment.
Root libraries were not the only ones missing.

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