现在的位置: 首页 > 综合 > 正文

php — pecl 安装模块时出现”pear.php.net is using a unsupported protocal – This should never happen. install failed “错误

2013年01月26日 ⁄ 综合 ⁄ 共 2638字 ⁄ 字号 评论关闭

在使用pecl install apc给magento安装apc来加速时碰到了如下错误:

 

pear.php.net is using a unsupported protocal - This should never happen.

install failed

 

在尝试了

pecl update-channels

pecl  channel-discover


等命令无效后,上google找了一下,还真有人碰到一样的问题.其实我在编译安装PHP的时候也有遇到他们说的问题,不过不知道是不是由此导致的.

 

 

不过他们导致找到了解决方案,判断是由于

usr/local/lib/php/.channels/pear.php.net.reg

/usr/local/lib/php/.channels/pecl.php.net.reg

两个文件的不完整或损坏引起的.如果不删除这些,即使是更新到其它的版本也无济于事.

 

解决方案:

 

删除或重命名 .channel文件目录

然后再运行

pear update-channels 或

pecl update-channels

 

参考:http://www.pear-forum.org/topic2301.html

抱歉!评论已关闭.