我正在尝试安装 percona 服务器。这是一台测试机器,安装的软件包并不重要。我需要做的就是安装 percona mysql 服务器。
http://www.percona.com/downloads/Percona-Server-5.0/Percona-Server-5.0.90-21/RPM/rhel5/i386/
我下载并尝试安装。遇到了几个依赖性问题。
# rpm -ivh Percona-SQL-server-50-5.0.90-b21.10.rhel5.i386.rpm
file /usr/share/mysql/ukrainian/errmsg.sys from install of Percona-SQL-server-50-5.0.90-b21.10.rhel5.i386 conflicts with file from package mysql-libs-5.1.61-4.el6.i686
# rpm -e mysql-libs-5.1.61-4.el6.i686
error: Failed dependencies:
libmysqlclient.so.16 is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686
libmysqlclient.so.16(libmysqlclient_16) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686
mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.i686
# rpm -e postfix-2:2.6.6-2.2.el6_1.i686
error: package postfix-2:2.6.6-2.2.el6_1.i686 is not installed
# rpm -e postfix-2.6.6-2.2.el6_1.i686
error: Failed dependencies:
/usr/sbin/sendmail is needed by (installed) cronie-1.4.4-7.el6.i686
/usr/sbin/sendmail is needed by (installed) redhat-lsb-4.0-3.el6.i686
有什么快捷方法可以安装此包并绕过所有依赖问题?
答案1
如果您忽略依赖关系或只是尝试使用您找到的随机包来满足您的需求,那么您将陷入“RPM 地狱”。仅仅因为它是 RPM 并不意味着它适用于您的发行版。Percona 确实有一个yum 仓库。我建议您按照这些说明操作,假设您使用的是 CentOS 或 RedHat。那么安装 percona 将非常简单yum install Percona-Server-server-51
。
答案2
您可能需要下载并安装这些软件包:http://www.percona.com/downloads/Percona-Server-5.0/LATEST/RPM/rhel6/i686/
看来您正在尝试将 RHEL5 软件包安装到 RHEL6 系统。您可以通过输入以下命令来验证这一点:
cat /etc/redhat-release
答案3
问题 1
据我所知,您正在 6.x 系统上安装 5.x 的 rpm
问题 2 .. 安装他们的 yum repo 并以这种方式安装
按照此处的步骤操作
答案4
尝试
yum localinstall --nogpgcheck Percona-SQL-server-50-5.0.90-b21.10.rhel5.i386.rpm
这应该解决所需的依赖关系