I have installed rh-ruby26 on my machine as a root user and it got installed under /opt/rh/rh-ruby26/root/bin/ruby..when I have tried to execute a script , am getting "error while loading shared libraries: libruby.so.2.6:cannot open shared file object file: no such file or directory" . So to fix the issue I have set the LD_LIBRARY_PATH and it got worked.To fix it permanantly I have linked the libruby.so to lib64 path.so my questions are
- Why the libruby.so is not stored under standard library path? 2.what are all the standard library path , we need to check if we are looking for any library? 3.If normal user installed the same rh-ruby26 package then where the libruby.so file will store?
Please help me to find the answer.thanks in advance