0

尝试下载 Zend Framework2 view pyrus 时出现错误。这是错误:

# php pyrus.phar . install zf2/Zend_Framework#Standard
Using PEAR installation found at /usr/share/pear/pyrus
PHP Warning:  Invalid argument supplied for foreach() in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 91
PHP Notice:  Undefined variable: extra in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Package/Dependency/Set/PackageTree.php on line 277
Pyrus\Installer\Exception: Dependency validation failed for some packages to install, installation aborted
 Pyrus\Package\Dependency\Set\Exception: No versions of </< or of its dependencies that can be installed because of

我在“usr/share/pear/pyrus/”中安装了 pyrus。任何想法为什么它不起作用?我什至尝试像这样安装另一个 Zend 库,但我得到了同样的错误消息。

$ php pyrus.phar 。安装 zf2/Zend_Http

列出频道我得到这个:

[root@apollo pyrus]# php pyrus.phar list-channels
Using PEAR installation found at /usr/share/pear/pyrus
Listing channels [/usr/share/pear/pyrus]:
__uri (__uri)
doc.php.net (phpdocs)
packages.zendframework.com (zf2)
pear.php.net (pear)
pear2.php.net (pear2)
pecl.php.net (pecl)
pyrus.net (pyrus)

然后,当我尝试从 zf2 获取远程包列表时,它给了我一个错误:

# php pyrus.phar remote-list zf2
Using PEAR installation found at /usr/share/pear/pyrus
Remote packages for channel zf2:
PHP Warning:  current() expects parameter 1 to be array, string given in phar:///usr/share/pear/pyrus/pyrus.phar/Pyrus_Pharer-0.1.0/php/Pyrus/Channel/RemoteCategories.php on line 66

Zends 存储库中似乎一定有错误,因为如果我将它们列出为 pear,我会使用以下命令获得它们的完整列表:

# php pyrus.phar remote-list pear

难道我做错了什么?

谢谢你

4

1 回答 1

1

FWIW 我得到的和你完全一样,并且假设 Zend repo 被搞砸了——我无法开始猜测时间尺度以期望它可能不再被搞砸。我已经改用作曲家包安装程序,这似乎更有希望;)

于 2013-02-01T16:01:51.320 回答