我試圖將CentOS服務器上的PHP版本更新爲5.3.8。但是,當我運行「yum update php」時,我得到了mysql-libs和mysql之間的一系列文件衝突。我試着卸載mysql-server,mysql-devel和mysql-client,然後重新安裝它們,但是當我這樣做時,mysqld不會啓動,並且不會向/ var/log/messages或任何地方寫入任何錯誤否則,我可以找到。我知道這是一個最近的問題,因爲我在七月/八月沒有這個問題。有沒有人有任何想法如何解決這個問題?更新時MySQL-libs文件衝突PHP
這裏是我的控制檯是什麼樣子:
[[email protected] ~]# 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
-------------
該服務器是LAMP Rightscale服務器模板中的Rightscale中的一個EC2實例,因此該模板中默認的RHEL包(儘管我希望Rightscale會因爲它們已經過時而更新了模板)。另外,我嘗試卸載RHEL軟件包並在MySQL網站上安裝通用MySQL軟件包,我遇到的問題是我無法在安裝後啓動服務,並且它沒有記錄任何可以排查故障的位置它。 –
嘗試卸載RHEL軟件包並執行yum install mysql-server,然後更新php。你需要把你的軟件包同步。 CentOS有它自己的mysql,爲什麼mysql的網站或RHEL? – favoretti