[dzzzapp@gxzc-dzzz-0007 ~]$ sudo rpm -ivh mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm warning: mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY error: Failed dependencies: mysql-community-libs(x86-64) >= 8.0.11 is needed by mysql-community-libs-compat-8.0.33-1.el7.x86_64 mariadb-libs is obsoleted by mysql-community-libs-compat-8.0.33-1.el7.x86_64
时间: 2023-07-03 17:31:52 浏览: 218
根据你提供的信息,安装mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm时出现了依赖问题,提示缺少mysql-community-libs(x86-64) >= 8.0.11。同时,提示mariadb-libs已被mysql-community-libs-compat-8.0.33-1.el7.x86_64所取代。
你需要先安装mysql-community-libs-8.0.33-1.el7.x86_64.rpm,可以使用以下命令安装:
```
sudo rpm -ivh mysql-community-libs-8.0.33-1.el7.x86_64.rpm
```
安装完毕后,再次尝试安装mysql-community-libs-compat-8.0.33-1.el7.x86_64.rpm即可。
同时,建议你在安装mysql-community的过程中,先安装所有依赖包,再安装主要的mysql-community-server包,这样能够避免依赖问题。
相关问题
[dzzzapp@gxzc-dzzz-0007 ~]$ sudo rpm -ivh mysql-community-libs-8.0.33-1.el7.x86_64.rpm warning: mysql-community-libs-8.0.33-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY error: Failed dependencies: mariadb-libs is obsoleted by mysql-community-libs-8.0.33-1.el7.x86_64
根据你提供的信息,安装mysql-community-libs-8.0.33-1.el7.x86_64.rpm时出现了依赖问题,提示mariadb-libs已被mysql-community-libs-8.0.33-1.el7.x86_64所取代。
这个提示并不是错误,而是告诉你mysql-community-libs-8.0.33-1.el7.x86_64已经包含了mariadb-libs的所有功能,因此mariadb-libs可以被mysql-community-libs-8.0.33-1.el7.x86_64所取代。
你可以使用以下命令忽略这个依赖问题,强制安装mysql-community-libs-8.0.33-1.el7.x86_64.rpm:
```
sudo rpm -ivh --nodeps mysql-community-libs-8.0.33-1.el7.x86_64.rpm
```
不过,在忽略依赖问题的情况下安装软件包并不是一个好的做法,因为这可能会导致软件包不能正常工作或者引入安全漏洞。建议你在安装mysql-community的过程中,先安装所有依赖包,再安装主要的mysql-community-server包,这样能够避免依赖问题。
[dzzzapp@gxzc-dzzz-0007 ~]$ sudo rpm -Uvh mysql-community-libs-8.0.33-1.el7.x86_64.rpm warning: mysql-community-libs-8.0.33-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY error: Failed dependencies: libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64 libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
根据你提供的信息,安装mysql-community-libs-8.0.33-1.el7.x86_64.rpm时出现了依赖问题,提示缺少libmysqlclient.so.18()(64bit)和libmysqlclient.so.18(libmysqlclient_18)(64bit)。同时,提示已安装的postfix-2:2.10.1-7.el7.x86_64也需要这些依赖。
你需要先安装缺失的依赖,可以使用以下命令安装:
```
sudo yum install mysql-community-libs-compat
```
安装完毕后,再次尝试安装mysql-community-libs-8.0.33-1.el7.x86_64.rpm即可。
阅读全文