Operating System - Linux
1827857 Members
1502 Online
109969 Solutions
New Discussion

copy library file to /lib

 
hangyu
Regular Advisor

copy library file to /lib


When I run some application program , it pop the below error message " libraries : libcrypto.so.4: cannot open shared object file: No such file for directory" , then I have copy this file from another host ( different OS version ) to /lib , now the application is OK to run , but I am afraid that it is harmful to the system ( especially after reboot the server ) , can advise is there any impact to the system to do that ? thx
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: copy library file to /lib

Shalom,

Well, you solved the problem.

There is a possible negative impact. What if down the road you install something else that needs the same directory space?

Will it overwrite? Will it warn you in advance? Maybe, maybe not.

Its also possible th functioning of the libraries will not be expected because they were not designed and tested on this OS.

Sometimes you have to do exactly what you did, there are no alternatives. Where possible, libraries should be obtained and installed from a reputable provider who has built them and tested them on your OS. If you are using an rpm based distribution then you should go for an rpm isntallation.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: copy library file to /lib

It shouldn't cause you any grief.

But you might want to find out why it wasn't installed on this system.

On my systems, 'libcrypto.so.4' is a symbolic link to the current openssl 'libcrypto.so.0.9.xx' (0.9.7a here).

Why doesn't your new machine have the 'openssl' package installed?
One long-haired git at your service...