Solved

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

Posted on 2007-03-26
3
3,419 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

914 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

16 Experts available now in Live!

Get 1:1 Help Now