Max OS X 10.7 .. 运行时phing -v
出现以下错误:
Warning: require_once(phing/Project.php): failed to open stream: No such file or directory in /usr/lib/php/pear/phing/Phing.php on line 22
Fatal error: require_once(): Failed opening required 'phing/Project.php' (include_path='.:') in /usr/lib/php/pear/phing/Phing.php on line 22
以下是我使用的命令:
pear config-set auto_discover 1
pear install phing/phing
这是我的 php.ini:
include_path = ".:/Applications/MAMP/bin/php/php5.3.6/lib/php"
为 php、pear 和 phing 运行 whereis 会返回:
bash-3.2$ whereis php
/usr/bin/php
bash-3.2$ whereis pear
/usr/bin/pear
bash-3.2$ whereis phing
/usr/bin/phing
运行 config-get 获取梨返回:
→ pear config-get php_dir
/usr/lib/php/pear
检查此文件夹,system.php
并且phing.php
两者都存在于此路径中。