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

lib包依赖解决

时间:2015-01-12 11:25:37      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:

当前环境之前是装过MySQL官方版本5.6.22,想测试Percona版本MySQL。启动Percona-MySQL报错。

[root@dg7 support-files]# /etc/init.d/mysql start
my_print_defaults: error while loading shared libraries: libssl.so.6: cannot open shared object file: No such file or directory
Starting MySQL (Percona Server)Couldn‘t find MySQL server ([FAILED]al/Percona-Server-5.6.21-rel70.1-698.Linux.x86_64/bin/mysqld_safe)

查看系统openssl是有装的,

[root@dg7 ~]# rpm -ql openssl
/etc/pki/CA
/etc/pki/CA/certs
/etc/pki/CA/crl
/etc/pki/CA/newcerts
/etc/pki/CA/private
/etc/pki/tls
/etc/pki/tls/certs
/etc/pki/tls/certs/Makefile
/etc/pki/tls/certs/make-dummy-cert
/etc/pki/tls/certs/renew-dummy-cert
/etc/pki/tls/misc
/etc/pki/tls/misc/CA
/etc/pki/tls/misc/c_hash
/etc/pki/tls/misc/c_info
/etc/pki/tls/misc/c_issuer
/etc/pki/tls/misc/c_name
/etc/pki/tls/openssl.cnf
/etc/pki/tls/private
/usr/bin/openssl
/usr/lib64/.libcrypto.so.1.0.1e.hmac
/usr/lib64/.libcrypto.so.10.hmac
/usr/lib64/.libssl.so.1.0.1e.hmac
/usr/lib64/.libssl.so.10.hmac
/usr/lib64/libcrypto.so.1.0.1e
/usr/lib64/libcrypto.so.10
/usr/lib64/libssl.so.1.0.1e
/usr/lib64/libssl.so.10

[root@dg7 ~]# cd /usr/lib64

[root@dg7 lib64]# ll libssl
libssl3.so        libssl.so         libssl.so.0.9.8e  libssl.so.10      libssl.so.1.0.1e

看来依赖的版本是低版本的,

[root@dg7 lib64]# ll libssl.so.10
lrwxrwxrwx 1 root root 16 Dec  4 19:47 libssl.so.10 -> libssl.so.1.0.1e
[root@dg7 lib64]#ln -sv libssl.so.1.0.1e libssl.so.6

再次启动,又报错,

[root@dg7 /]# /etc/init.d/mysql start
my_print_defaults: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
Starting MySQL (Percona Server)Couldn‘t find MySQL server ([FAILED]al/Percona-Server-5.6.21-rel70.1-698.Linux.x86_64/bin/mysqld_safe)

只能想法解决版本问题了。

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

[root@dg7 /]# yum provides libcrypto.so.6
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.aliyun.com
 * updates: centos.cs.nctu.edu.tw
openssl098e-0.9.8e-18.el6_5.2.i686 : A compatibility version of a general cryptography and TLS library
Repo        : base
Matched from:
Other       : libcrypto.so.6

顺便刚才那个也检查一下

[root@dg7 /]# yum provides libssl.so.6
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.aliyun.com
 * updates: centos.cs.nctu.edu.tw
openssl098e-0.9.8e-18.el6_5.2.i686 : A compatibility version of a general cryptography and TLS library
Repo        : base
Matched from:
Other       : libssl.so.6

因为本环境是64位系统

[root@dg7 /]# yum install openssl098e-0.9.8e-18.el6_5.2

[root@dg7 /]# /etc/init.d/mysql start
Starting MySQL (Percona Server)...                         [  OK  ]

能正常启动了

 

lib包依赖解决

标签:

原文地址:http://www.cnblogs.com/LMySQL/p/4217926.html

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