首页 > 其他 > 详细

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

时间:2016-06-27 19:57:20      阅读:539      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!