Solved

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

Posted on 2007-03-26
3
3,452 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 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