码迷,mamicode.com
首页 > 其他好文 > 详细

error while loading shared libraries: libssl.so.6: cannot open shared object file

时间:2017-07-05 19:58:04      阅读:206      评论:0      收藏:0      [点我收藏+]

标签:ldd   yum   check_tcp   libssl.so.6   openssl098e-0.9.8e-20   

[root@ ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80

/usr/local/nagios/libexec/check_tcp: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory



关联库文件:发现libssl.so.6 => not found和libcrypto.so.6 => not found

ldd /usr/local/nagios/libexec/check_tcp 

linux-gate.so.1 =>  (0x00ac2000)

libnsl.so.1 => /lib/libnsl.so.1 (0x0097d000)

libresolv.so.2 => /lib/libresolv.so.2 (0x00ee9000)

libssl.so.6 => not found

libcrypto.so.6 => not found

libpthread.so.0 => /lib/libpthread.so.0 (0x00853000)

libdl.so.2 => /lib/libdl.so.2 (0x0093a000)

libc.so.6 => /lib/libc.so.6 (0x001f5000)

/lib/ld-linux.so.2 (0x0061e000)



yum provides libssl.so.6
yum provides libcrypto.so.6
会出来是哪个rpm包 包含 这个lib库。

[root@~]# yum provides libssl.so.6
Loaded plugins: security
openssl098e-0.9.8e-20.el6.centos.1.i686 : A compatibility version of a general cryptography and TLS library
Repo        : base
Matched from:
Other       : libssl.so.6



[root@~]# yum provides libcrypto.so.6
Loaded plugins: security
openssl098e-0.9.8e-20.el6.centos.1.i686 : A compatibility version of a general cryptography and TLS library
Repo        : base
Matched from:
Other       : libcrypto.so.6


只要安装上openssl098e-0.9.8e-20.el6.centos.1.i686 就可以解决
yum install openssl098e-0.9.8e-20.el6.centos.1.i686 

验证:
[root@iZ23xcazs25Z ~]# ldd /usr/local/nagios/libexec/check_tcp 
	linux-gate.so.1 =>  (0x00775000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x0080a000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x00b6e000)
	libssl.so.6 => /usr/lib/libssl.so.6 (0x00aef000)
	libcrypto.so.6 => /usr/lib/libcrypto.so.6 (0x00e9d000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x007b7000)
	libdl.so.2 => /lib/libdl.so.2 (0x00abf000)
	libc.so.6 => /lib/libc.so.6 (0x001ad000)
	libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x005f4000)
	libkrb5.so.3 => /lib/libkrb5.so.3 (0x00690000)
	libcom_err.so.2 => /lib/libcom_err.so.2 (0x00393000)
	libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x00344000)
	libz.so.1 => /lib/libz.so.1 (0x00504000)
	/lib/ld-linux.so.2 (0x00959000)
	libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x008b3000)
	libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x0036f000)
	libselinux.so.1 => /lib/libselinux.so.1 (0x00d15000)
	
	或者
	[root@iZ23xcazs25Z ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80
Connection refused


本文出自 “Holy” 博客,请务必保留此出处http://holy2010.blog.51cto.com/1086044/1944788

error while loading shared libraries: libssl.so.6: cannot open shared object file

标签:ldd   yum   check_tcp   libssl.so.6   openssl098e-0.9.8e-20   

原文地址:http://holy2010.blog.51cto.com/1086044/1944788

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!