Error: cannot open shared object file

Dear experts,

I installed ROOT 5.27 on my Ubuntu machine. When I use the hadd command, I got an error:
hadd: error while loading shared libraries: cannot open shared object file: No such file or directory, so how to fix the problem?
Thanks a lot!


how did you install ROOT? I assume that LD_LIBRARY_PATH isn’t set up properly e.g. through source bin/ (if built without --prefix), or that you didn’t modify your /etc/ (if built with --prefix).

Cheers, Axel.