pecl安装redis模块失败(redirected but no location)
Posted 淘代码
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pecl安装redis模块失败(redirected but no location)相关的知识,希望对你有一定的参考价值。
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 |
这个错误看起来很奇怪,怎么回事呢?以前都好好的,怪事。网上搜索了一下,找到如下一段话:
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)的主要内容,如果未能解决你的问题,请参考以下文章