最新消息:yaf表单扩展中新增加了浮点数、日期和集合的校验。php yaf框架扩展实践三——表单

pecl安装redis模块失败(redirected but no location)

PHP 1502浏览 0评论

mac下面用pecl安装redis模块的时候,提示失败:

$ sudo pecl install redis
 Package "redis" does not have REST info xml available
 install failed

尝试搜索一下:

$ pecl search redis
 File http://pecl.php.net:80/rest/p/packages.xml not valid (redirected but no location)

这个错误看起来很奇怪,怎么回事呢?以前都好好的,怪事。网上搜索了一下,找到如下一段话:

If anyone else has a similar problem, it is solved now, it's the firewall. For any reason, I can download files from the browser, and I can install or update packages by APT, but firewall is blocking PEAR downloads. I have added PEAR URL's to secured sites and now it's working.

看到firewall is blocking PEAR downloads,就猜到估计是某墙的问题,打开VPN再试一下就OK了。

参考地址:

http://stackoverflow.com/questions/18869547/cant-update-pear-packages-redirected-but-no-location

不过感觉pecl的出错提示也太奇怪了,都看不太明白。

转载请注明:快乐编程 » pecl安装redis模块失败(redirected but no location)

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址