ユーザ用ツール

サイト用ツール


01_linux:02_www:81_php53-common_conflicts_with_php-common

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
01_linux:02_www:81_php53-common_conflicts_with_php-common [2014/08/07 02:22] – [81 php53へアップデート] matsui01_linux:02_www:81_php53-common_conflicts_with_php-common [2016/03/15 00:59] (現在) – [2.まずは、yum-plugin-replaceをインストール] matsui
行 1: 行 1:
 +====== 81 php53へアップデート ======
  
 +<code>
 +yum remove php*
 +yum install php53
 +</code>
 +
 +普通に上記でphp53をインストールしたら、下記のようなエラーで悩まされる。
 +
 +
 +yum-plugin-replaceをインストールしてあげると上手くいきます。
 +===== ①エラー =====
 +
 +<code console>
 +# 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.
 +</code>
 +
 +
 +
 +===== ②対処 =====
 +
 +==== 1.まずは一度下記でphpに戻しておく ====
 +
 +
 +yum remove php53*
 +yum intall php-devel
 +
 +==== 2.まずは、yum-plugin-replaceをインストール ====
 +
 +=== EPEL導入 ===
 +<code console>
 +# 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
 +</code>
 +
 +== CentOS6 EPEL導入 ==
 +<code>
 +# wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
 +</code>
 +
 +=== インストール ===
 +<code console>
 +# yum --enablerepo=epel install yum-plugin-replace
 +</code>
 +
 +
 +{{tag>epel php53}}
 +==== 3.php53へリプレース ====
 +
 +=== IUS導入 ===
 +<code console>
 +# 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
 +</code>
 +
 +=== php53uインストール ===
 +<code console>
 +# yum --enablerepo=ius replace php --replace-with php53u
 +</code>
 +
 +==== 4.これでphp53u-pecl-memcacheがインストールできるようになる ====
 +
 +<code console>
 +# yum --enablerepo=ius install php53u-pecl-memcache
 +</code>