码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-06-27 20:00:20      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

 

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

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

尝试搜索一下:

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

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

1
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了。

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

 

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

标签:

原文地址:http://www.cnblogs.com/tcode/p/5621273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!