InsideDarkWeb.com

Libruby.so library not in default library location

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

  1. 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

Server Fault Asked by Kishore Kumar on November 22, 2021

1 Answers

One Answer

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

Add your own answers!

Related Questions

zywall usg 100 log website visits

1  Asked on October 5, 2020 by user331495

     

Can’t connect to network share

0  Asked on October 5, 2020 by nebu

   

OpenVPN Install: Can’t access to Client UI page

1  Asked on October 2, 2020 by the-one

 

NGINX Reverse Proxy to Dynamic DNS

1  Asked on September 23, 2020 by tempster102

     

Linux systemd: remove slice

1  Asked on September 20, 2020 by mike-s

   

Local subnet behind Tinc VPN not reachable

0  Asked on September 20, 2020 by user3786071

       

Running FlexLM License Server in a Docker Container

1  Asked on September 19, 2020 by gogators

   

Hyper V VM restarting in a loop – How to see VM output?

0  Asked on September 16, 2020 by maralc

   

AWS service like ansible

1  Asked on September 16, 2020 by exeral

   

Compress several files with different names

2  Asked on September 14, 2020 by snowdembr

 

systemd networkd is restarted after systemctl stop

1  Asked on September 14, 2020 by barisdad

   

Issue with HAProxy 2.0.7 setup with tproxy on Centos-7

0  Asked on September 13, 2020 by shailendra-pratap-singh

         

Local install of powershell instead of https://shell.azure.com?

1  Asked on September 13, 2020 by bruce-adams

   

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.