Xampp - 错误的PEAR data_dir设置

时间:2014-09-26 06:10:35

标签: php xampp pear phing

我在我的Windows 7机器上安装了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?我可以通过更改一些配置参数来修复此错误吗?

1 个答案:

答案 0 :(得分:1)

我通过使用命令

重置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

现在构建工作正常。