Solved

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

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
(Open)LDAP V2.44  search proxy to AD (W2012R2) 37 218
maybe no no httpd.conf 6 79
I NEED A "BARE" LINUX ... 9 92
rsyslog raw message 4 38
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

726 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