当前在CentOS 6.5上运行PHP 5.4。
我安装了webtatic php55w软件包,然后通过PECL毫无问题地安装了PEAR + PECL以及redis和mongo。
不久之后,我意识到5.5与我使用的框架不兼容,所以我删除了php55w并在其位置安装了php54w。
现在pecl命令根本不起作用。每当我发出任何pecl命令(缩写...最多重复数十次)时,它只会产生非常长的错误字符串:
Warning: Invalid argument supplied for foreach() in Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259
...etc etc etc...
Notice: Undefined index: honorsbaseinstall in Role.php on line 180
Notice: Undefined index: honorsbaseinstall in Role.php on line 180
...etc etc etc...
Notice: Undefined index: installable in Role.php on line 145
Notice: Undefined index: installable in Role.php on line 145
...etc etc etc...
Notice: Undefined index: phpfile in Role.php on line 212
Notice: Undefined index: phpfile in Role.php on line 212
...etc etc etc...
Notice: Undefined index: config_vars in Role.php on line 49
Notice: Undefined index: config_vars in Role.php on line 49
...etc etc etc...
Warning: Invalid argument supplied for foreach() in PEAR/Command.php on line 259
Warning: Invalid argument supplied for foreach() in /usr/share/pear/PEAR/Command.php on line 259
...etc etc etc...
XML Extension not found
我怎样才能解决这个问题?