使用 gitclone 时出现 Phing 错误 - Git 任务依赖于 PEAR\'s VersionControl_Git 包 [英] Phing error when using gitclone - Git tasks depend on PEAR\'s VersionControl_Git package

查看:47
本文介绍了使用 gitclone 时出现 Phing 错误 - Git 任务依赖于 PEAR\'s VersionControl_Git 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行 phing install 时,我不断收到此错误:

When I run phing install i keep getting this error:

Execution of target "install" failed for the following reason:
/Applications/MAMP/htdocs/wp-test/build.xml:7:8:
/Applications/MAMP/htdocs/wp-test/build.xml:7:8: The Git tasks depend 
on PEAR\'s VersionControl_Git package.

所以我下载了这个包:

downloading VersionControl_Git-0.4.4.tgz ...
Starting to download VersionControl_Git-0.4.4.tgz (14,831 bytes)
.....done: 14,831 bytes
install ok: channel://pear.php.net/VersionControl_Git-0.4.4

但它仍然给我同样的错误.这是我的 build.xml:

But still it gives me the same error. This is my build.xml:

<project name="wp-dev" default="install">
    <property name="package" value="wp-dev" override="true"/>
    <property name="wpdeposit.dir" value="wp-content/plugins/wpdeposit" override="true"/>
    <target name="install">
        <gitclone
                repository="https://github.com/WordPress/WordPress.git"
                targetPath="/" />
    </target>

</project>

推荐答案

需要设置PHP的include路径,见PEAR 手册了解更多信息.

You need to setup PHP's include path, see the PEAR manual for more information.

这篇关于使用 gitclone 时出现 Phing 错误 - Git 任务依赖于 PEAR\'s VersionControl_Git 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆