我在Windows7机器上安装了Xampp。路径为C:''examplep。在尝试使用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
现在构建工作正常。