====== 81 php53へアップデート ====== yum remove php* yum install php53 普通に上記でphp53をインストールしたら、下記のようなエラーで悩まされる。 yum-plugin-replaceをインストールしてあげると上手くいきます。 ===== ①エラー ===== # yum install php-pecl-memcache ・ ・ ・ php53-common-5.3.3-1.el5_6.1.x86_64 from updates has depsolving problems --> php53-common conflicts with php-common Error: php53-common conflicts with php-common You could try using --skip-broken to work around the problem You could try running: package-cleanup --problems package-cleanup --dupes rpm -Va --nofiles --nodigest The program package-cleanup is found in the yum-utils package. ===== ②対処 ===== ==== 1.まずは一度下記でphpに戻しておく ==== yum remove php53* yum intall php-devel ==== 2.まずは、yum-plugin-replaceをインストール ==== === EPEL導入 === # wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm # rpm -ivh epel-release-5-4.noarch.rpm # vi /etc/yum.repos.d/epel.repo 6 enabled=1  ↓ 6 enabled=0 == CentOS6 EPEL導入 == # wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm === インストール === # yum --enablerepo=epel install yum-plugin-replace {{tag>epel php53}} ==== 3.php53へリプレース ==== === IUS導入 === # wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-11.ius.el5.noarch.rpm # rpm -ivh ius-release-1.0-11.ius.el5.noarch.rpm # vi /etc/yum.repos.d/epel.repo 6 enabled=1  ↓ 6 enabled=0 === php53uインストール === # yum --enablerepo=ius replace php --replace-with php53u ==== 4.これでphp53u-pecl-memcacheがインストールできるようになる ==== # yum --enablerepo=ius install php53u-pecl-memcache