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.tcode.me/article/78.html 来自淘代码转载请注明