Problems installing PHP EzComponents using pyrus

ⅰ亾dé卋堺 提交于 2019-12-07 21:07:47

问题


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

回答1:


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).




回答2:


This is not the only problem. ezComponents Location header redirects to /. So I don't think fixing this bug alone will help. It seems ezComponents has quite a weird setup that pyrus can't deal with.

Pyrus works fine with phpunit.de and so on.



来源:https://stackoverflow.com/questions/5797651/problems-installing-php-ezcomponents-using-pyrus

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!