我在 RHEL 7.8 上有“mysql-community-release-el7.rpm”。当尝试安装时,我相信它尝试安装 RHEL 8 版本,因此引发依赖错误。
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.21-1.el8 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.21-1.el8 for package: mysql-community-server-8.0.21-1.el8.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.21-1.el8.x86_64
以下错误
--> Processing Dependency: libtirpc.so.3()(64bit) for package: mysql-community-server-8.0.21-1.el8.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.11)(64bit)
Error: Package: mysql-community-client-8.0.21-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: mysql-community-server-8.0.21-1.el8.x86_64 (mysql80-community)
我如何强制它安装 el7 版本而不是 el8 ?请建议。
答案1
我终于能够安装了。从“https://dev.mysql.com/downloads/mysql/”下载特定于 RHEL7 的 tar 文件,从 tar 导入每个 rpm,最后 yum 安装“mysql-community-server-8.0.21-1.el7”。 x86_64'成功。