概要
以下のようなコマンドを実行したら
pear channel-discover pear.phing.info
pear install --alldeps phing/phing
以下のようなエラーが出てインストールできませんでした
Failed to download pear/VersionControl_SVN within preferred state "stable", latest release is version 0.5.2, stability "alpha", use "channel://pear.php.net/VersionControl_SVN-0.5.2" to install
Failed to download pear/VersionControl_Git within preferred state "stable", latest release is version 0.4.4, stability "alpha", use "channel://pear.php.net/VersionControl_Git-0.4.4" to install
Unknown remote channel: pear.phpunit.de
Unknown remote channel: pear.phpunit.de
WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2"
Failed to download pear/Services_Amazon_S3 within preferred state "stable", latest release is version 0.4.0, stability "alpha", use "channel://pear.php.net/Services_Amazon_S3-0.4.0" to install
Unknown remote channel: pear.phpunit.de
Unknown remote channel: pear.phpunit.de
Unknown remote channel: pear.phpdoc.org
WARNING: "pear/PHP_CompatInfo" is deprecated in favor of "channel://bartlett.laurent-laville.org/PHP_CompatInfo"
Unknown remote channel: pear.phpunit.de
Failed to download pear/XML_Serializer within preferred state "stable", latest release is version 0.20.2, stability "beta", use "channel://pear.php.net/XML_Serializer-0.20.2" to install
WARNING: "pear/PHP_CompatInfo" is deprecated in favor of "channel://bartlett.laurent-laville.org/PHP_CompatInfo"
phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.4.0)
phing/phing can optionally use package "pear/VersionControl_Git" (version >= 0.4.3)
phing/phing can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.6.0)
phing/phing can optionally use package "channel://pear.phpunit.de/PHP_CodeCoverage" (version >= 1.1.0)
phing/phing requires package "pear/Archive_Tar" (version >= 1.3.8), installed version is 1.3.7
phing/phing can optionally use package "pear/Services_Amazon_S3" (version >= 0.3.1)
phing/phing can optionally use package "channel://pear.phpunit.de/phpcpd" (version >= 1.3.3)
phing/phing can optionally use package "channel://pear.phpunit.de/phploc" (version >= 1.6.4)
phing/phing can optionally use package "channel://pear.phpdoc.org/phpDocumentor" (version >= 2.0.0b7)
pear/Net_Growl requires PHP extension "mbstring"
pear/Net_Growl can optionally use package "channel://pear.phpunit.de/PHPUnit" (version >= 3.6.0)
pear/PEAR_PackageFileManager_Plugins requires package "pear/XML_Serializer" (version >= 0.19.0)
pear/PEAR_PackageFileManager requires package "pear/PEAR_PackageFileManager_Plugins"
pear/PEAR_PackageFileManager2 requires package "pear/PEAR_PackageFileManager_Plugins"
No valid packages found
この対処方法を紹介します
環境
- CentOS 6.5 (Final) 64bit
- PHP 5.3.3
- PEAR 1.9.4
対処方法
インストールコマンドを実行する前にコマンドを実行してください
pear clear-cache
pear config-set preferred_state alpha
pear install --alldeps pear.phing.info/phing-2.7.0
- キャッシュを削除して
- 安定版以外のパッケージもインストールする設定をして
- channelのフルネームを指定してphingをインストール
します
対処した段階でのphingの最新版が2.9.2だったのですが、それだとNo valid packages found
になってうまくインストールできませんでした
とりあえずphingをインストールするのが目的だったのでこれで解決しました
0 件のコメント:
コメントを投稿