Server Fault Asked by Kishore Kumar on November 22, 2021
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
Please help me to find the answer.thanks in advance
It sounds like you are using a software collection. These are intentionally kept separated from the standard system paths so that multiple versions can be installed simultaneously, and to not conflict with the original version shipped with the distribution.
The documentation tells how to use software collections. What you need to do from a terminal is to execute scl enable rh-ruby26 bash
to get a shell with this software collection enabled. See the linked docs for information on how to make a system service that uses a software collection.
Answered by Michael Hampton on November 22, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP