CENTOS5.3での話です。
PEARをアップグレードしようとすると以下のように怒られました。
pear upgrade PEAR WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9 pear/PEAR dependency package "pear/Archive_Tar" installed version 1.3.1 is not the recommended version 1.3.3, but may be compatible, use --force to install No valid packages found upgrade failed
PEARが古いのと、Archive_Tarが古いといわれてしまいました。
pear channel-update pear.php.net Retrieving channel.xml from remote server Update of Channel "pear.php.net" succeeded
まずPEARを更新して、
pear upgrade pear/Archive_Tar pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9 No valid packages found upgrade failed
あれ、失敗?
pear install -f pear/Archive_Tar warning: pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9 downloading Archive_Tar-1.3.3.tgz ... Starting to download Archive_Tar-1.3.3.tgz (18,119 bytes) ......done: 18,119 bytes install ok: channel://pear.php.net/Archive_Tar-1.3.3
強引にねじ込みました。