如何将梨从1.4.9升级到最新版本?


5

它看起来可能是 1.7.2但我没有在梨网站上找到任何明确的,“这是梨的当前版本”。

我正在尝试在一个我并不熟悉的系统上升级PEAR。

梨版产量......

PEAR Version: 1.4.9
PHP Version: 5.1.6
Zend Engine Version: 2.1.0
Running on: Linux...

我跑了 pear upgrade pear 并且包含此消息。

pear/PEAR dependency package "pear/Archive_Tar" installed version 1.3.5 is not the recommended version 1.3.3, but may be compatible, use --force to install
pear/Archive_Tar requires PEAR Installer (version >= 1.5.4), installed version is 1.4.9

我知道你的感受;梨和PECL一直都很邋..对Windows来说甚至更糟。 :-(
Synetech

Answers:


5

下雪了

pear upgrade --force --alldeps http://pear.php.net/get/PEAR-1.10.1

然后升级其余部分

pear clear-cache
pear update-channels
pear upgrade
pear upgrade-all



1

我正在使用Debian 8和apt-get install php-pear只安装1.9。

然后我发现这个有效:

梨升级梨

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.