使用MySQL 5.1在Centos 5.9上安装php5.3

We have MySQL version 5.1.73 runnning on our CentOS 5.9 server and want to install PHP 5.3. However, when I run yum install php53-mysql I get the following error message:

--> Running transaction check
---> Package php53-mysql.x86_64 0:5.3.3-22.el5_10 set to be updated
--> Processing Dependency: php53-pdo for package: php53-mysql
--> Processing Dependency: libmysqlclient.so.15(libmysqlclient_15)(64bit) for package: php53-mysql
--> Processing Dependency: libmysqlclient.so.15()(64bit) for package: php53-mysql
--> Running transaction check
---> Package mysql.x86_64 0:5.0.95-5.el5_9 set to be updated
---> Package php53-pdo.x86_64 0:5.3.3-22.el5_10 set to be updated
--> Processing Conflict: mysql conflicts MySQL
--> Finished Dependency Resolution
mysql-5.0.95-5.el5_9.x86_64 from base has depsolving problems
  --> mysql conflicts with MySQL-server-community
Error: mysql conflicts with MySQL-server-community
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

Hours of googling have not yielded any results as it seems I'm the only one experiencing conflicts between PHP 5.3 and MySQL 5.1. It seems to me that PHP 5.3 wants to install MySQL 5.0 for some reason, but I'm not sure (very new to all this).

Any help would be greatly appreciated :-)

douou1872
douou1872 也尝试在serverfault.com上询问
6 年多之前 回复
doumaoao0182
doumaoao0182 谢谢你的回复!问题是服务器上有几个ruby应用程序都使用当前的MySQL安装。我也尝试过yum命令,没有运气。
6 年多之前 回复
duanci8209
duanci8209 从我看到它看起来你正在尝试安装一个php和mysql的组合包,你已经安装了mysql。卸载Mysql然后运行yuminstallphp53-mysql
6 年多之前 回复
drl47263
drl47263 你有没有尝试过yum建议的命令(skip-broken,package-cleanup)?如果您想要卸载MySQL-server-community版本,请查看:stackoverflow.com/a/17296274/499581
6 年多之前 回复

1个回答



对于任何未来的googlers:从IUS存储库安装PHP: https://iuscommunity.org/pages/IUSClientUsageGuide.html : - )</ p>
</ div>

展开原文

原文

For any future googlers: Install PHP from the IUS repository: https://iuscommunity.org/pages/IUSClientUsageGuide.html :-)

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问