Php 导入phing任务文件时出错,但该文件已存在

Php 导入phing任务文件时出错,但该文件已存在,php,pear,phing,Php,Pear,Phing,2.4.12建造。我已将phing文件放在/opt/phing中并添加了 指向.bashrc的行 export PHP_COMMAND=/usr/bin/php export PHING_HOME=/opt/phing export PHP_CLASSPATH=${PHING_HOME}/classes export PATH=${PATH}:${PHING_HOME}/bin 我能够运行基本的phing脚本,但当我使用svnExportDiffTask时,它会抛出错误 [PHP Err

2.4.12建造。我已将phing文件放在/opt/phing中并添加了 指向.bashrc的行

export PHP_COMMAND=/usr/bin/php 
export PHING_HOME=/opt/phing 
export PHP_CLASSPATH=${PHING_HOME}/classes 
export PATH=${PATH}:${PHING_HOME}/bin
我能够运行基本的phing脚本,但当我使用svnExportDiffTask时,它会抛出错误

[PHP Error] include_once(phing/tasks/ext/svn/SvnExportDiffTask.php):
            failed to open stream: No such file or directory
            [line 1057 of /opt/phing/classes/phing/Phing.php]
[PHP Error] include_once(): Failed opening 'phing/tasks/ext/svn/SvnExportDiffTask.php'
            for inclusion (include_path='/opt/phing/classes:.:/home/prateek/work/bitnami/php/lib/php') 
            [line 1057 of /opt/phing/classes/phing/Phing.php]
  [foreach] Error importing phing/tasks/ext/svn/SvnExportDiffTask.php
Execution of target "getcode" failed for the following reason:
/home/prateek/work/build/build.xml:31:35:
Execution of the target buildfile failed. Aborting.

BUILD FAILED
/home/prateek/work/build/build.xml:31:35:
Execution of the target buildfile failed. Aborting.

有人能帮我吗。

通过PEAR安装程序安装phing,以便自动安装所有依赖项。它将解决您的大多数问题。

哪个是
SvnExportDiffTask.php
的完整路径?@cweiske path:/opt/phing/classes/phing/tasks/ext/svn/SvnExportDiffTask.php错误已解决没有SvnExportDiffTask文件,但存在SvnExportTask文件。名称已更改。现在PHP中出现了另一个致命错误:在第316行的/opt/phing/classes/phing/tasks/ext/svn/SvnBaseTask.PHP中找不到类“PEAR_ErrorStack”,请使用PEAR安装phing,以便获得所有依赖项。@cweiske感谢它成功了