CentOS 5.6にphp-posixパッケージをインストールできない

CentOS 5.6にphp-posixパッケージをインストールできない

CentOS 5.6ホストに次のPHPパッケージがインストールされていて、それをインストールしようとしていますphp-posix。実行するとyum install php-posixphp53-commonphp-common

[root@dev ~]# yum list installed | grep php
php.x86_64                               5.3.10-1.w5                   installed
php-cli.x86_64                           5.3.10-1.w5                   installed
php-common.x86_64                        5.3.10-1.w5                   installed
php-devel.x86_64                         5.3.10-1.w5                   installed
php-gd.x86_64                            5.3.10-1.w5                   installed
php-ldap.x86_64                          5.3.10-1.w5                   installed
php-mcrypt.x86_64                        5.3.10-1.w5                   installed
php-mysql.x86_64                         5.3.10-1.w5                   installed
php-pdo.x86_64                           5.3.10-1.w5                   installed
php-pear.noarch                          1:1.9.4-1.w5                  installed
php-soap.x86_64                          5.3.10-1.w5                   installed
php-xml.x86_64                           5.3.10-1.w5                   installed


[root@dev ~]# yum install php-posix
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.krystal.co.uk
 * epel: ftp.uni-koeln.de
 * extras: mirror.krystal.co.uk
 * rpmforge: mirror.nl.leaseweb.net
 * updates: mirror.krystal.co.uk
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-process.x86_64 0:5.3.3-7.el5_8 set to be updated
--> Processing Dependency: php53-common = 5.3.3-7.el5_8 for package: php53-process
--> Running transaction check
---> Package php53-common.x86_64 0:5.3.3-7.el5_8 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-7.el5_8.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.

インストールを妨げるのはなぜですかphp-posix

ベストアンサー1

このエラーは、すでにインストールphp-common53されているパッケージとのパッケージ競合が原因で発生しますphp-common。パッケージのバージョンphp-common53は5.3.3で、インストールされたphpパッケージは5.3.10です。インストールされたphpパッケージは、EPELまたはRPMForgeリポジトリから提供できます。を実行するとわかりますyum info php

パッケージを削除しphp-commonて依存し、インストールする必要がありますphp53-common。リポジトリに対応するPHPパッケージがないと、現在インストールされているPHPパッケージの一部が失われる可能性があります。

# yum remove  php php-cli php-common php-devel php-gd php-ldap php-mcrypt php-mysql php-pdo php-pear php-soap php-xml

インストール中、およびphp-posix依存関係などの依存関係が自動的にインストールされます。php53php53-common

# yum install php-posix

注意していない場合は、EPELおよびRPMForgeリポジトリのいずれかまたは両方を有効にすると問題が発生する可能性があることに注意してください。yumソフトウェアを管理し、リポジトリを実行し続けるのに役立つコマンド(--enablerepoや--disablerepoなど)と、利用可能なプラグイン(yum-plugin-protect-packagesとyum-plugin-protectbaseなど)をよく理解してください。

おすすめ記事