doupu2722 2011-11-29 23:35
浏览 93

更新PHP时MySQL-libs文件冲突

I'm trying to update the version of PHP on my CentOS server to 5.3.8. However, when I run "yum update php" I get a a slew of file conflicts between mysql-libs and mysql. I've tried uninstalling mysql-server, mysql-devel, and mysql-client and then reinstalling all of them, but when I do that mysqld won't start and isn't writing any errors to /var/log/messages or anywhere else that I can find. I know it's a recent problem as I didn't have this problem back in July/August. Does anyone have any ideas how to fix this?

Here's what my console looks like:

[root@ip-10-123-23-54 ~]# yum update php
Excluding Packages from none
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: php = 5.2.4-RightScale for package: php-devel
---> Package php.x86_64 0:5.3.8-2.el5.art set to be updated
--> Processing Dependency: php-common = 5.3.8-2.el5.art for package: php
--> Processing Dependency: php-cli = 5.3.8-2.el5.art for package: php
--> Running transaction check
---> Package php-cli.x86_64 0:5.3.8-2.el5.art set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: php-cli
--> Processing Dependency: php-common = 5.2.4-RightScale for package: php-mysql
--> Processing Dependency: php-common = 5.2.4-RightScale for package: php-pdo
---> Package php-common.x86_64 0:5.3.8-2.el5.art set to be updated
---> Package php-devel.x86_64 0:5.3.8-2.el5.art set to be updated
--> Running transaction check
---> Package libedit.x86_64 0:3.0-2.20090923cvs.el5.art set to be updated
---> Package php-mysql.x86_64 0:5.3.8-2.el5.art set to be updated
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_16)(64bit) for package: php-mysql
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: php-mysql
---> Package php-pdo.x86_64 0:5.3.8-2.el5.art set to be updated
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.5.18-1.el5.art set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                Arch                                               Version                                                                  Repository                                          Size
=============================================================================================================================================================================================================================================
Updating:
 php                                                    x86_64                                             5.3.8-2.el5.art                                                          atomic                                             1.4 M
Installing for dependencies:
 libedit                                                x86_64                                             3.0-2.20090923cvs.el5.art                                                atomic                                              81 k
 mysql-libs                                             x86_64                                             5.5.18-1.el5.art                                                         atomic                                             1.1 M
Updating for dependencies:
 php-cli                                                x86_64                                             5.3.8-2.el5.art                                                          atomic                                             2.6 M
 php-common                                             x86_64                                             5.3.8-2.el5.art                                                          atomic                                             982 k
 php-devel                                              x86_64                                             5.3.8-2.el5.art                                                          atomic                                             625 k
 php-mysql                                              x86_64                                             5.3.8-2.el5.art                                                          atomic                                             160 k
 php-pdo                                                x86_64                                             5.3.8-2.el5.art                                                          atomic                                             117 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install      2 Package(s)
Update       6 Package(s)
Remove       0 Package(s)

Total size: 7.0 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /etc/my.cnf from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/charsets/cp1251.xml from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-libs-5.5.18-1.el5.art.x86_64 conflicts with file from package MySQL-server-community-5.1.55-1.rhel5.x86_64

Error Summary
-------------
  • 写回答

2条回答 默认 最新

  • dongwu8064 2011-11-29 23:41
    关注

    That's what you get for installing RHEL5 packages on CentOS :) Is there a reason you have MySQL-server-community-5.1.55-1.rhel5.x86_64 instead of CentOS native MySQL package?

    All in all I'd say remove MySQL-server-community-5.1.55-1.rhel5.x86_64 and install CentOS's stock MySQL if there is no particular reason.

    评论

报告相同问题?

悬赏问题

  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行