使用 pyrus 安装 PHP EzComponents 的问题 [英] Problems installing PHP EzComponents using pyrus

查看:57
本文介绍了使用 pyrus 安装 PHP EzComponents 的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎 Ez Components 存储库与 pyrus 不兼容.当 pyrus 尝试下载软件包时,它似乎是 302.有没有人有安装这个的运气?这是 PHPUnit 的要求.

It seems that the Ez Components repository will not play nice with pyrus. It seems to 302 when pyrus tries to download the package. Has anyone had any luck installing this? It's a requirement for PHPUnit.

C:\wamp\bin\php\php5.3.5>php pyrus.phar install  ezc/eZComponents
Pyrus version 2.0.0a3 SHA-1: BE7EA9D171AE3873F1BBAF692EEE9165BB14BD5D
Using PEAR installation found at pyrus
Downloading components.ez.no/eZComponents

PEAR2\Pyrus\Package\Exception: Invalid abstract package components.ez.no/eZCompo
nents
 PEAR2\Pyrus\Package\Exception: Could not download from "http://components.ez.no
/get/eZComponents-2009.2.1.phar"
  PEAR2\Pyrus\Package\Exception: Download failed, received 302

推荐答案

302FOUND 的状态码(意思是:嘿嘿,看Location 在哪里可以找到您要找的东西).通常,客户端应该遵循 Location-header 中给出的链接,但似乎 Pyrus 没有.这应该被视为错误(如 cweiske 所述).

302 is the status code for FOUND (meaning: Hey, look at Location where to find what you are looking for). Usually a client should follow the link given in the Location-header, but it seems, that Pyrus doesn't. This should be treated as a bug (as mentioned by cweiske).

这篇关于使用 pyrus 安装 PHP EzComponents 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆