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 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大