No handlers for package.xml version 2.0
尝试在某主机安装Pear的DB_Table
pear install -o DB_Table
下载…………………………等了半晌,在下载完之后,本应安装成功的时候,丢出来一句:
No handlers for package.xml version 2.0
这实在是很奇怪的事情,php的xml extension没少装,依赖包也不曾短缺了它的,它怎么就能这样呢?搜索了一把,在Pear的Faq上面找到了答案.
Why do I get “No handlers for package.xml version 2.0″ when I try to install a package?
You are using a PEAR version lower than 1.4.0.
To install the package, you have to update PEAR via:
$ pear upgrade PEAR
This will install the latest available version of PEAR which is capable of installing packages that have only a package.xml version 2.0.
在升级Pear为1.4.11之后,问题解决.