Php Xampp-PEAR数据_dir设置不正确

Php Xampp-PEAR数据_dir设置不正确,php,xampp,pear,phing,Php,Xampp,Pear,Phing,我在Windows7机器上安装了Xampp。路径是C:\xampp。在尝试使用phing构建项目时,我遇到了错误 The PEAR data_dir setting is incorrect: C:\php\pear\data. Please edit using 'pear config-set data_dir ...' and re-install Phing. 如何在Xampp中重新安装Phing?我可以通过更改一些配置参数来修复此错误吗?我通过使用命令重置phing参数来修复此问题

我在Windows7机器上安装了Xampp。路径是C:\xampp。在尝试使用phing构建项目时,我遇到了错误

The PEAR data_dir setting is incorrect: C:\php\pear\data.
Please edit using 'pear config-set data_dir ...' and re-install Phing.

如何在Xampp中重新安装Phing?我可以通过更改一些配置参数来修复此错误吗?

我通过使用命令重置phing参数来修复此问题

pear config-set doc_dir C:\xampp\php\pear\docs
pear config-set cfg_dir C:\xampp\php\pear\cfg
pear config-set data_dir C:\xampp\php\pear\data
pear config-set cache_dir C:\xampp\php\pear\cache
pear config-set download_dir C:\xampp\php\pear\download
pear config-set temp_dir C:\xampp\php\pear\temp
pear config-set test_dir C:\xampp\php\pear\tests
pear config-set www_dir C:\xampp\php\pear\www
然后重新安装phing

pear install phing/phing

现在构建工作正常。

你能看透它吗,它将对你有帮助。.这很难从中看出,请使用“pear配置集数据\u目录…”进行编辑,然后重新安装Phing。错误消息-谢谢你的回复。