yum does not work

Issues related to applications and software problems and general support
ybzhao
Posts: 9
Joined: 2019/11/01 15:20:57

Re: yum does not work

Post by ybzhao » 2019/11/01 21:34:04

Yes, all matched.

Code: Select all

f0521c678244194da944fdeced45433f  /usr/lib64/libcrypto.so
f0521c678244194da944fdeced45433f  /usr/lib64/libcrypto.so.1.1
f0521c678244194da944fdeced45433f  /usr/lib64/libcrypto.so.1.1.1
ad507b0ffbe90ff20fcc3f56a618100d  /usr/lib64/librpmbuild.so.8
ad507b0ffbe90ff20fcc3f56a618100d  /usr/lib64/librpmbuild.so.8.1.0
024d9a582d72546c8ef054e0559a707b  /usr/lib64/librpmio.so.8
024d9a582d72546c8ef054e0559a707b  /usr/lib64/librpmio.so.8.1.0
fb05765d40740dc9fae1724a999e6351  /usr/lib64/librpmsign.so.8
fb05765d40740dc9fae1724a999e6351  /usr/lib64/librpmsign.so.8.1.0
8ced1dfd0b77e3f2606b3d7e4f7792ee  /usr/lib64/librpm.so.8
8ced1dfd0b77e3f2606b3d7e4f7792ee  /usr/lib64/librpm.so.8.1.0

ybzhao
Posts: 9
Joined: 2019/11/01 15:20:57

Re: yum does not work

Post by ybzhao » 2019/11/01 22:07:40

I am not sure whether this could be the reason. The mysql is the binary version downloaded from the offical website.

[root@vps ~]# openssl
openssl: relocation error: openssl: symbol EVP_md2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference
[root@vps ~]#
[root@vps ~]#
[root@vps ~]#
[root@vps ~]# which openssl
/usr/bin/openssl
[root@vps ~]#
[root@vps ~]#
[root@vps ~]# ls -lh /usr/bin/openssl
-rwxr-xr-x. 1 root root 760K May 11 09:57 /usr/bin/openssl
[root@vps ~]#
[root@vps ~]#
[root@vps ~]#
[root@vps ~]# ldd /usr/bin/openssl
linux-vdso.so.1 (0x00007ffcf39b9000)
libssl.so.1.1 => /usr/local/mysql/lib/libssl.so.1.1 (0x00007f79158a5000)
libcrypto.so.1.1 => /usr/local/mysql/lib/libcrypto.so.1.1 (0x00007f7915460000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007f7915249000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f7915045000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f7914e25000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007f7914a61000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7915de8000)
[root@vps ~]#
[root@vps ~]#
[root@vps ~]# ls -lh /usr/lib64/libcrypto.so*
lrwxrwxrwx. 1 root root 18 May 11 09:57 /usr/lib64/libcrypto.so -> libcrypto.so.1.1.1
lrwxrwxrwx. 1 root root 18 May 11 09:57 /usr/lib64/libcrypto.so.1.1 -> libcrypto.so.1.1.1
-rwxr-xr-x. 1 root root 3.2M May 11 09:57 /usr/lib64/libcrypto.so.1.1.1
[root@vps ~]#

ybzhao
Posts: 9
Joined: 2019/11/01 15:20:57

Re: yum does not work

Post by ybzhao » 2019/11/01 22:14:43

I found that it's the problem from mysql. After I renamed the mysql folder, yum, rpm and openssl work. I do not know why it happened.

[root@vps local]# openssl
openssl: relocation error: openssl: symbol EVP_md2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]# ldd /usr/bin/openssl
linux-vdso.so.1 (0x00007ffc5f5e0000)
libssl.so.1.1 => /usr/local/mysql/lib/libssl.so.1.1 (0x00007fdebf680000)
libcrypto.so.1.1 => /usr/local/mysql/lib/libcrypto.so.1.1 (0x00007fdebf23b000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007fdebf024000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007fdebee20000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007fdebec00000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007fdebe83c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fdebfbc3000)
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]# mv /usr/local/mysql /usr/local/mysql.0
[root@vps local]#
[root@vps local]#
[root@vps local]#
[root@vps local]# ldd /usr/bin/openssl
linux-vdso.so.1 (0x00007ffdc7f89000)
libssl.so.1.1 => /lib64/libssl.so.1.1 (0x00007f54b44bd000)
libcrypto.so.1.1 => /lib64/libcrypto.so.1.1 (0x00007f54b3fe5000)
libz.so.1 => /usr/lib64/libz.so.1 (0x00007f54b3dce000)
libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f54b3bca000)
libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f54b39aa000)
libc.so.6 => /usr/lib64/libc.so.6 (0x00007f54b35e6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f54b4a09000)
[root@vps local]#
[root@vps local]#
[root@vps local]# openssl
OpenSSL>

ybzhao
Posts: 9
Joined: 2019/11/01 15:20:57

Re: yum does not work

Post by ybzhao » 2019/11/01 22:23:22

Found that reason. I have installed LNMP pakcage, which added mysql.conf to the directory /etc/ld.so.conf.d/

[root@vps lib]# cat cat /etc/ld.so.conf
cat: cat: No such file or directory
include ld.so.conf.d/*.conf
/lib
/usr/lib
/usr/lib64
/usr/local/lib
[root@vps lib]#
[root@vps lib]#
[root@vps lib]# ls /etc/ld.so.conf.d/
bind-export-x86_64.conf freetype.conf kernel-4.18.0-80.11.2.el8_0.x86_64.conf kernel-4.18.0-80.7.1.el8_0.x86_64.conf mysql.conf
[root@vps lib]#
[root@vps lib]#
[root@vps lib]#
[root@vps lib]# cat /etc/ld.so.conf.d/mysql.conf
/usr/local/mysql/lib
/usr/local/lib
[root@vps lib]#
[root@vps lib]#

User avatar
TrevorH
Forum Moderator
Posts: 27125
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum does not work

Post by TrevorH » 2019/11/02 00:35:38

We already supply both mysql and mariadb in the repos.

Code: Select all

[root@centos8 ~]# dnf list mysql-server mariadb-server                                                                                 
Last metadata expiration check: 0:34:38 ago on Sat Nov  2 00:00:39 2019.
Available Packages
mariadb-server.x86_64                     3:10.3.11-2.module_el8.0.0+35+6f2527ed                                  AppStream
mysql-server.x86_64                       8.0.17-3.module_el8.0.0+181+899d6349                                    AppStream
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 8 - General Support”