每次我试图奔跑sudo yum install mysql-devel
我遇到了以下错误:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql-devel.i686 0:5.1.73-3.el6_5 will be installed
--> Processing Dependency: mysql = 5.1.73-3.el6_5 for package: mysql-devel-5.1.73-3.el6_5.i686
--> Finished Dependency Resolution
Error: Package: mysql-devel-5.1.73-3.el6_5.i686 (updates)
Requires: mysql = 5.1.73-3.el6_5
Installed: mysql-5.5.28-1.el6.i686 (@CentALT)
mysql = 5.5.28-1.el6
Available: mysql-5.1.71-1.el6.i686 (base)
mysql = 5.1.71-1.el6
Available: mysql-5.1.73-3.el6_5.i686 (updates)
mysql = 5.1.73-3.el6_5
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我尝试运行两个建议的命令,但无济于事。有人知道是什么阻止了安装吗?我必须设置某个包还是其他什么?
答案1
.. 假设CentALT
repo 没有mysql-devel
rpm
,您需要重新安装mysql-server
,通过卸载您已有的并在base
安装之前安装它mysql-devel
(两者都必须从同一位置安装)。
yum remove mysql
yum install mysql-devel
答案2
您的 mysql 版本与您尝试安装的 mysql-devel 版本不同。根据输出,这是因为您已从 CentALT repo 安装了 mysql。
尝试
yum --enablerepo=CentALT install mysql-devel