Hi everyone, I recently encountered an error that I was struggling with and have finally solved it. I’m not sure if this solution is explicitly detailed in the documentation, I’m simply posting the solution here so in case one runs into the same error the solution will be easy to find.
root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory
The problem is that the shared libraries need to be explicitly declared. This solution is only for linux.
In order to solve this problem navigate to the /etc/ld.so.conf.d/ and make a config file with the ROOT library in it.
vim root.conf (create new file)
put the directory of your root library in the file (/lib/root)
save the file and run ldconfig as root
Note: your config file should only contain text that is a directory, mine is /lib/root
That should solve the error. In the previous directory there is a file named ld.so.conf. What this file does, as far as I can tell, is scan through the config files in the /etc/ld.so.conf.d/ directory and include the paths listed in the config files as shared directories.
Hope this helps anyone who encounters the same problem.