Saturday, October 15, 2022

mysql-community-server-5.7 Requires: libsasl2.so.2()(64bit)

 

# yum install mysql-community-server

Loaded plugins: langpacks, ulninfo

Resolving Dependencies

--> Running transaction check

---> Package mysql-community-server.x86_64 0:5.7.40-1.el6 will be installed

--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.40-1.el6.x86_64

--> Processing Dependency: libsasl2.so.2()(64bit) for package: mysql-community-server-5.7.40-1.el6.x86_64

--> Running transaction check

---> Package mysql-community-client.x86_64 0:5.7.40-1.el6 will be installed

---> Package mysql-community-server.x86_64 0:5.7.40-1.el6 will be installed

--> Processing Dependency: libsasl2.so.2()(64bit) for package: mysql-community-server-5.7.40-1.el6.x86_64

--> Finished Dependency Resolution

Error: Package: mysql-community-server-5.7.40-1.el6.x86_64 (mysql57-community)

           Requires: libsasl2.so.2()(64bit)

 You could try using --skip-broken to work around the problem

 You could try running: rpm -Va --nofiles --nodigest

Cause:
Baseurl in repo config file is mapped to old release.

Solution:
# cat /etc/yum.repos.d/mysql.repo
[mysql57-community]
name=MySQL 5.7 Community Server
## baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/6/$basearch/
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

https://blog.fearcat.in/a?ID=00001-3311f896-7ed9-4220-8f2f-0e7ba81f2add

No comments:

Post a Comment