2011-11-29 39 views
0

我試圖將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 
------------- 

回答

0

這就是你什麼在CentOS :) 安裝RHEL5包有你有MySQL的服務器 - 社區5.1.55-1.rhel5的理由.x86_64代替CentOS本地MySQL包?

總而言之,我會說刪除MySQL服務器社區5.1.55-1.rhel5.x86_64並安裝CentOS的股票MySQL如果沒有特別的原因。

+0

該服務器是LAMP Rightscale服務器模板中的Rightscale中的一個EC2實例,因此該模板中默認的RHEL包(儘管我希望Rightscale會因爲它們已經過時而更新了模板)。另外,我嘗試卸載RHEL軟件包並在MySQL網站上安裝通用MySQL軟件包,我遇到的問題是我無法在安裝後啓動服務,並且它沒有記錄任何可以排查故障的位置它。 –

+0

嘗試卸載RHEL軟件包並執行yum install mysql-server,然後更新php。你需要把你的軟件包同步。 CentOS有它自己的mysql,爲什麼mysql的網站或RHEL? – favoretti

0

在CentOS 6.2上將PHP從5.3升級到5.4時,我也遇到了與mysql-libs問題相同的錯誤。這是我解決問題的程序。我維護的服務器上的MySQL服務器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

  • 安裝COMPAT-mysql55

yum --enablerepo=remi-test install compat-mysql55(版本號55是由於MySQL服務器5.5我的服務器上)

sudo yum --enablerepo=remi update php-\*

  • 升級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。