处理MariaDB Galera cluster安装时提示找不到libssl.so.10和libcrypto.so.10的案例两例

一.基本信息

    OS: redhat 6.3 64位

    cluster软件版本:
    MariaDB-Galera-server.i686 0:10.0.25-1.el6     
    MariaDB-client.i686 0:10.0.25-1.el6     
    MariaDB-compat.i686 0:10.0.25-1.el6    
    galera.i686 0:25.3.15-1.rhel6.el6

二.案例一

   问题如下:
[root@mvxl0782 software]# rpm -ivh socat-1.7.2.3-1.el6.x86_64.rpm
warning: socat-1.7.2.3-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
error: Failed dependencies:
        libcrypto.so.10(libcrypto.so.10)(64bit) is needed by socat-1.7.2.3-1.el6.x86_64
        libssl.so.10(libssl.so.10)(64bit) is needed by socat-1.7.2.3-1.el6.x86_64
  问题分析:

检查libssl.so.10和libcrypto.so.10是否存在
[root@mvxl0782 lib64]# ll /usr/lib64/libssl.so*
lrwxrwxrwx. 1 root root     15 Dec 26  2013 /usr/lib64/libssl.so -> libssl.so.1.0.0
-rwxr-xr-x  1 root root 321224 Apr 23  2012 /usr/lib64/libssl.so.0.9.8e
lrwxrwxrwx. 1 root root     15 Dec 26  2013 /usr/lib64/libssl.so.10 -> libssl.so.1.0.0
-rwxr-xr-x. 1 root root 375352 May 15  2012 /usr/lib64/libssl.so.1.0.0
lrwxrwxrwx  1 root root     16 Jun 11 09:43 /usr/lib64/libssl.so.6 -> libssl.so.0.9.8e
[root@mvxl0782 lib64]# ll /usr/lib64/libcrypto.so*
lrwxrwxrwx. 1 root root      18 Dec 26  2013 /usr/lib64/libcrypto.so -> libcrypto.so.1.0.0
-rwxr-xr-x  1 root root 1408384 Apr 23  2012 /usr/lib64/libcrypto.so.0.9.8e
lrwxrwxrwx. 1 root root      18 Dec 26  2013 /usr/lib64/libcrypto.so.10 -> libcrypto.so.1.0.0
-rwxr-xr-x. 1 root root 1665328 May 15  2012 /usr/lib64/libcrypto.so.1.0.0
lrwxrwxrwx  1 root root      19 Jun 11 09:43 /usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
用yum whatprovides libcrypto.so.10和yum whatprovides libssl.so查看包也有安装。
尝试修改/etc/ld.so.conf
# more  /etc/ld.so.conf
include ld.so.conf.d/*.conf
/usr/lib64
/usr/local/lib
/lib
/lib64
并执行ldconfig,但问题依然存在。

在/etc/profile中加入环境变量:
export LD_LIBRARY_PATH=/usr/lib64
source /etc/profile
问题依旧。
再尝试重新建立libssl.so.10和libcrypto.so.10的软链接文件:
cd /usr/lib64
rm libssl.so.10
[root@mvxl0782 lib64]# ln -s /usr/lib64/libssl.so.1.0.0 /usr/local/lib/libssl.so.10
[root@mvxl0782 lib64]# rm libcrypto.so.10
rm: remove symbolic link `libcrypto.so.10'? y
[root@mvxl0782 lib64]# ln -s /usr/lib64/libcrypto.so.1.0.0 /lib64/libcrypto.so.10
问题还是存在。

问题处理:
从网上查找了多篇英语资料,准备要放弃的,最后找到了下面方法,拿来试试,结果还真管用。其实方法就是升级这openssl版本。
rpm -Uhv http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm
rpm -Uhv http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-14.ius.el6.noarch.rpm
将下面的enabled=1改成enabled=0
cd /etc/yum.repos.d
vi epel.repo
yum install yum-plugin-replace
yum replace --enablerepo=ius-archive openssl --replace-with openssl10

[root@mvxl0782 software]#  ls /usr/lib64/ | grep -e ssl.so -e crypto.so
libcrypto.so
libcrypto.so.10
libcrypto.so.1.0.1e
libk5crypto.so
libnss_compat_ossl.so.0
libnss_compat_ossl.so.0.0.0
libssl.so
libssl.so.10
libssl.so.1.0.1e 


三.案例二
   问题如下:

yum install MariaDB-Galera-server MariaDB-client rsync galera
.......
--> Finished Dependency Resolution
Error: openssl10 conflicts with openssl
Error: Package: galera-25.3.15-1.rhel6.el6.i686 (mariadb)
           Requires: libcrypto.so.10(libcrypto.so.10)
Error: Package: MariaDB-client-10.0.25-1.el6.i686 (mariadb)
           Requires: libssl.so.10(libssl.so.10)
Error: Package: MariaDB-client-10.0.25-1.el6.i686 (mariadb)
           Requires: libcrypto.so.10(libcrypto.so.10)
Error: Package: MariaDB-Galera-server-10.0.25-1.el6.i686 (mariadb)
           Requires: libcrypto.so.10(libcrypto.so.10)
Error: Package: galera-25.3.15-1.rhel6.el6.i686 (mariadb)
           Requires: libssl.so.10(libssl.so.10)
Error: Package: MariaDB-Galera-server-10.0.25-1.el6.i686 (mariadb)
           Requires: libssl.so.10(libssl.so.10)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

   问题分析处理:
  查看包所在文件,发现没有安装。
[root@mvxl0782 software]# yum whatprovides libcrypto.so.10
Loaded plugins: product-id, refresh-packagekit, replace, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
openssl-1.0.0-20.el6_2.5.i686 : A general purpose cryptography library with TLS implementation
Repo        : rhel6
Matched from:
Other       : libcrypto.so.10

下载openssl10-libs-1.0.1e-1.ius.el6.i686.rpm包
[root@mvxl0782 software]# rpm -ivh openssl10-libs-1.0.1e-1.ius.el6.i686.rpm --force
Preparing...                ########################################### [100%]
   1:openssl10-libs         ########################################### [100%]
[root@mvxl0782 software]# rpm -qa|grep openssl
openssl10-1.0.1e-2.ius.el6.x86_64
openssl10-libs-1.0.1e-1.ius.el6.i686
openssl098e-0.9.8e-17.el6_2.2.x86_64
openssl10-libs-1.0.1e-2.ius.el6.x86_64
openssl10-devel-1.0.1e-2.ius.el6.x86_64
[root@mvxl0782 software]# yum whatprovides libcrypto.so.10
Loaded plugins: product-id, refresh-packagekit, replace, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
openssl-1.0.0-20.el6_2.5.i686 : A general purpose cryptography library with TLS implementation
Repo        : rhel6
Matched from:
Other       : libcrypto.so.10

openssl10-libs-1.0.1e-1.ius.el6.i686 : A general purpose cryptography library with TLS implementation
Repo        : installed
Matched from:
Other       : Provides-match: libcrypto.so.10

你可能感兴趣的:(mysql高可用)