Solved

error while loading shared libraries: libssl.so.4:

Posted on 2007-03-26
3
3,411 Views
Last Modified: 2013-12-16
Let me preface my question by saying that I am relatively new to linux.
I recently installed a program that is failing to run because of the following error.  
 "error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory"
I believe that we are running Fedora Core 6.
I have searched the harddrive and found the following files which I assume are just newer versions of the same file:
./lib/libssl.so.6
./lib/libssl.so.0.9.8b
Would it be ok to create a link from /lib/libssl.so.4 to one of the files listed or would the different file versions cause my program to fail or become unstable?  If it is ok, which file would you link to?
Thanks,
Danny
0
Comment
Question by:accessint
  • 2
3 Comments
 
LVL 9

Expert Comment

by:mglxxx
ID: 18798276
Generally speaking, it is not a good idea to make a program which is needing an older version of a shared library work by creating
a link to a newer version. Often the program will crash straight away or fail in certain situations.
If you've got access to the source of the failing program, I'd try rebuilding it using the newer version of the shared
library. Failing that, you try to get hold of the old version of the shared library and install that.
0
 

Author Comment

by:accessint
ID: 18800003
Unfortunately, it is a proprietary piece of software which we do not have the source for.  When you say, "try to get hold of the old version of the shared library and install that" does that mean that I could simply copying the file libssl.so.4 from a fedora core 4 machine into the same directory as the libssl.so.6? or is it more complicated than that?  
Thanks for your help.
0
 
LVL 9

Accepted Solution

by:
mglxxx earned 500 total points
ID: 18801252
Copying over that library from another box might be an option. I'm not sure on what other libs libssl depends. It's certainly worth a try. A quick test would be:
Copy over the lib.
Do an 'ldd your_program_which_needs_libssl.so.4'
If this doesn't report any libs as missing, chances are good that your software will run.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now