libcrypto.so.4

ju5t

Verified User
Joined
Sep 14, 2005
Messages
409
Location
Amsterdam
For some reason yum does not want to update on of our servers.

Code:
Error: Missing Dependency: libcrypto.so.4 is needed by package net-snmp-libs

Other servers do not have that issue and are updating fine. I've compared files and configurations with one of them and they show the same.
OpenSSL is currently running at 0.9.8e on both servers and libcrypto should be available.

Code:
[root@xeon-2 ~]# openssl version
OpenSSL 0.9.8e 23 Feb 2007
[root@xeon-2 ~]# ls /lib/libcrypto.so.4
/lib/libcrypto.so.4

Adding or removing it to ld.so.conf makes no difference.

Code:
[root@xeon-2 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/local/ssl/lib

Any ideas what can be going wrong?
 
What's the output of:
Code:
ls -al /lib/libcrypto.so.4
What's the output of:
Code:
whereis libcrypto
and of
Code:
whereis libcrypto.so.4
And finally, what OS Distribution are you using?

Jeff
 
Hi Jeff,

Code:
[root@xeon-2 ~]# ls -al /lib/libcrypto.so.4
lrwxrwxrwx  1 root root 24 Sep  7 19:09 /lib/libcrypto.so.4 -> /lib/libcrypto.so.0.9.7a

Code:
[root@xeon-2 ~]# whereis libcrypto
libcrypto: /usr/src/openssl-0.9.8e/libcrypto.so /usr/src/openssl-0.9.8e/libcrypto.a /usr/src/openssl-0.9.8e/libcrypto.pc /usr/lib/libcrypto.so /usr/lib/libcrypto.a

Code:
libcrypto.so: /usr/src/openssl-0.9.8e/libcrypto.so /lib/libcrypto.so.4 /usr/lib/libcrypto.so /usr/lib/libcrypto.so.0 /usr/lib/libcrypto.so.4

Running CentOS.
 
Mine are slightly different using CentOS4. Is it possible that earlier files or links in the path are not pointing to the right files?
Code:
# ls -al /lib/libcrypto.so.4
lrwxrwxrwx  1 root root 19 Jan 29  2006 /lib/libcrypto.so.4 -> libcrypto.so.0.9.7a
# whereis libcrypto
libcrypto: /usr/lib/libcrypto.so /usr/lib/libcrypto.a
# whereis libcrypto.so.4
libcrypto.so: /lib/libcrypto.so.4 /usr/lib/libcrypto.so
Jeff
 
Which version of openssl are you running?
How is your ld.so.conf looking like?

Code:
# ls -al /lib/libcrypto.so.4
lrwxrwxrwx  1 root root 19 Sep  8 08:40 /lib/libcrypto.so.4 -> libcrypto.so.0.9.7a
# whereis libcrypto
libcrypto: /usr/lib/libcrypto.so /usr/lib/libcrypto.a
# whereis libcrypto.so.4
libcrypto.so: /lib/libcrypto.so.4 /usr/lib/libcrypto.so

It's looking similar to yours.
Did rpm -e --justdb --nodeps cyrus-sasl-plain and tried to install it afterwards:

Code:
# yum install cyrus-sasl-plain
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package cyrus-sasl-plain.i386 0:2.1.19-14 set to be updated
--> Running transaction check
--> Processing Dependency: cyrus-sasl = 2.1.19-14 for package: cyrus-sasl-plain
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package cyrus-sasl.i386 0:2.1.19-14 set to be updated
--> Running transaction check
--> Processing Dependency: libcrypto.so.4 for package: cyrus-sasl
--> Finished Dependency Resolution
Error: Missing Dependency: libcrypto.so.4 is needed by package cyrus-sasl

I have really no clue what can be going wrong now. Reinstalling openssl or downgrading to 0.9.8a didn't help either.
 
Last edited:
Which version of openssl are you running?
Code:
$ rpm -qa | grep openssl
openssl-devel-0.9.7a-43.16
xmlsec1-openssl-1.2.6-3
openssl-0.9.7a-43.16
$
How is your ld.so.conf looking like?
Code:
$ cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/local/lib
$
I have really no clue what can be going wrong now. Reinstalling openssl or downgrading to 0.9.8a didn't help either.
Nor do I. May I humbly suggest you ask some questons on the CentOS users mailing list?

Jeff
 
Oh are you running an rpm?
Not that it should be much different from a compiled version, though I always thought openssl shouldn't be installed from an rpm on a DirectAdmin server.
 
And I've always thought it was, as part of the server install:
Code:
$ rpm -qa | grep ssl
openssl-devel-0.9.7a-43.16
xmlsec1-openssl-1.2.6-3
openssl-0.9.7a-43.16
$
Remember that versions in RPMs may not appear to be up-to-date, because when RedHat/CentOS creates new RPMs they update sub-numbers, not version numbers.

In the case of this particular server, it was last updated on May 18th.

Jeff
 
Jeff, thanks for your input. The problem is solved now with some help from another forum.

It seems that when yum is installing or updating, it will look for installed RPM's, at least, sort of speak. I'm not entirely sure how the process works.

Anyway, a simple "yum install openssl" after removing openssl* from the exclude line in yum.conf did the trick. A manual update to 0.9.8e afterwards and we're all done. Just put the openssl* back on the exclude line if you want to update manually.

Hope this helps anyone in the future.
 
For some reason yum does not want to update on of our servers.

Code:
Error: Missing Dependency: libcrypto.so.4 is needed by package net-snmp-libs
Other servers do not have that issue and are updating fine. I've compared files and configurations with one of them and they show the same.
OpenSSL is currently running at 0.9.8e on both servers and libcrypto should be available.

Code:
[root@xeon-2 ~]# openssl version
OpenSSL 0.9.8e 23 Feb 2007
[root@xeon-2 ~]# ls /lib/libcrypto.so.4
/lib/libcrypto.so.4
Adding or removing it to ld.so.conf makes no difference.

Code:
[root@xeon-2 ~]# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/local/lib
/usr/local/ssl/lib
Any ideas what can be going wrong?

Same problem with me also please let me know


----------------------------------------
Spanish classes online free visit site www.learnspanishtoday.com For more Details.
 
Back
Top