このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
01_linux:02_www:81_php53-common_conflicts_with_php-common [2014/08/07 02:22] – [81 php53へアップデート] matsui | 01_linux:02_www:81_php53-common_conflicts_with_php-common [2016/03/15 00:59] (現在) – [2.まずは、yum-plugin-replaceをインストール] matsui | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 81 php53へアップデート ====== | ||
+ | < | ||
+ | yum remove php* | ||
+ | yum install php53 | ||
+ | </ | ||
+ | |||
+ | 普通に上記で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. | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ===== ②対処 ===== | ||
+ | |||
+ | ==== 1.まずは一度下記でphpに戻しておく ==== | ||
+ | |||
+ | |||
+ | yum remove php53* | ||
+ | yum intall php-devel | ||
+ | |||
+ | ==== 2.まずは、yum-plugin-replaceをインストール ==== | ||
+ | |||
+ | === EPEL導入 === | ||
+ | <code console> | ||
+ | # wget http:// | ||
+ | # rpm -ivh epel-release-5-4.noarch.rpm | ||
+ | |||
+ | # vi / | ||
+ | 6 enabled=1 | ||
+ | ↓ | ||
+ | 6 enabled=0 | ||
+ | </ | ||
+ | |||
+ | == CentOS6 EPEL導入 == | ||
+ | < | ||
+ | # wget http:// | ||
+ | </ | ||
+ | |||
+ | === インストール === | ||
+ | <code console> | ||
+ | # yum --enablerepo=epel install yum-plugin-replace | ||
+ | </ | ||
+ | |||
+ | |||
+ | {{tag> | ||
+ | ==== 3.php53へリプレース ==== | ||
+ | |||
+ | === IUS導入 === | ||
+ | <code console> | ||
+ | # wget http:// | ||
+ | # rpm -ivh ius-release-1.0-11.ius.el5.noarch.rpm | ||
+ | |||
+ | # vi / | ||
+ | 6 enabled=1 | ||
+ | ↓ | ||
+ | 6 enabled=0 | ||
+ | </ | ||
+ | |||
+ | === php53uインストール === | ||
+ | <code console> | ||
+ | # yum --enablerepo=ius replace php --replace-with php53u | ||
+ | </ | ||
+ | |||
+ | ==== 4.これでphp53u-pecl-memcacheがインストールできるようになる ==== | ||
+ | |||
+ | <code console> | ||
+ | # yum --enablerepo=ius install php53u-pecl-memcache | ||
+ | </ |