Subscribe:

2010/10/13

php-xmlインストールできない。

yum-priorities導入済でリポジトリ設定は以下の通り
・CentOS-Base.repo(priority=1)
・utterramblings.repo(priority=10)
・rpmforge.repo(priority=指定なし)
php-xmlをインストールしたいのでphp5.2をインストールしたリポジトリを指定してインストール。
# yum --enablerepo=utterramblings install php-xml

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* rpmforge: fr2.rpmfind.net
* updates: ftp.iij.ad.jp
512 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.1.6-27.el5 set to be updated
--> Processing Dependency: php-common = 5.1.6-27.el5 for package: php-xml
--> Finished Dependency Resolution
php-xml-5.1.6-27.el5.x86_64 from base has depsolving problems
--> Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-xml-5.1.6-27.el5.x86_64 (base)
Error: Missing Dependency: php-common = 5.1.6-27.el5 is needed by package php-xml-5.1.6-27.el5.x86_64 (base)
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.
必要なパッケージがないとエラー発生



# yum info php-xml --enablerepo=utterramblings

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* rpmforge: fr2.rpmfind.net
* updates: ftp.iij.ad.jp
513 packages excluded due to repository priority protections
Available Packages
Name : php-xml
Arch : x86_64
Version : 5.1.6
Release : 27.el5
Size : 101 k
Repo : base
Summary : A module for PHP applications which use XML
URL : http://www.php.net/
License : The PHP License v3.01
Description: The php-xml package contains dynamic shared objects which add support
: to PHP for manipulating XML documents using the DOM tree,
: and performing XSL transformations on XML documents.
リポジトリがbaseのままなのでutterramblingsリポジトリを指定しても意味がなさそうです。 プラグイン(yum-priorities)を無効にしてinfo取得 # yum --noplugins info php-xml
Available Packages
Name : php-xml
Arch : x86_64
Version : 5.2.14
Release : jason.1
Size : 343 k
Repo : utterramblings
Summary : A module for PHP applications which use XML
URL : http://www.php.net/
License : PHP
Description: The php-xml package contains dynamic shared objects which add support
: to PHP for manipulating XML documents using the DOM tree,
: and performing XSL transformations on XML documents.
意図した通りにutterramblingsリポジトリを参照してくれたのでプラグインを無効にしてインストール。 # yum -y --noplugins --enablerepo=utterramblings install php-xml
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.2.14-jason.1 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================
Package Arch Version Repository Size
==========================================================================================
Installing:
php-xml x86_64 5.2.14-jason.1 utterramblings 343 k
Transaction Summary
==========================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 343 k
Downloading Packages:
php-xml-5.2.14-jason.1.x86_64.rpm | 343 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php-xml 1/1
Installed:
php-xml.x86_64 0:5.2.14-jason.1
Complete!
インストールは出来たがいまいち納得いかない。 yum-prioritiesプラグインの理解が足らないのかなぁ?

0 件のコメント: