我正在尝试将我的CentOS服务器上的PHP版本更新为5.3.8。但是,当我运行“yum update php”时,我得到了mysql-libs和mysql之间的一系列文件冲突。我已经尝试卸载mysql-server,mysql-devel和mysql-client,然后重新安装所有这些,但是当我这样做时,mysqld将无法启动并且不会将任何错误写入/ var / log / messages或任何地方否则我能找到。我知道这是最近的问题,因为我在7月/ 8月没有遇到这个问题。有没有人有任何想法如何解决这个问题?
这是我的控制台的样子:
[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
-------------
答案 0 :(得分:0)
这就是你在CentOS上安装RHEL5软件包的方法:) 您是否有理由使用MySQL-server-community-5.1.55-1.rhel5.x86_64而不是CentOS原生MySQL包?
总而言之,我会说删除MySQL-server-community-5.1.55-1.rhel5.x86_64并在没有特殊原因的情况下安装CentOS的MySQL库存。
答案 1 :(得分:0)
在CentOS 6.2上将PHP从5.3升级到5.4时,我也遇到了与mysql-libs问题相同的错误。这是我解决问题的程序。我在服务器上维护了mysql server v5.5而没有升级
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
yum --enablerepo=remi-test install compat-mysql55
(版本号55是由于我服务器上的mysql server 5.5)
sudo yum --enablerepo=remi update php-\*
sudo yum --enablerepo=remi update php-\*
如果失败,请尝试在安装compat-mysql55的步骤之前安装MySQL-shared-compat- [version] -1.el6。[arch] .rpm。 [version]是你的盒子上的mysql服务器版本,[arch]是盒子的架构。例如,MySQL-shared-compat-5.5.23-1.el6.x86_64.rpm。请谷歌查找该文件的URL。