Phing error when using gitclone - Git tasks depend on PEAR\'s VersionControl_Git package

本小妞迷上赌 提交于 2020-01-05 15:17:32

问题


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.

So I download the 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

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>

回答1:


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



来源:https://stackoverflow.com/questions/33722511/phing-error-when-using-gitclone-git-tasks-depend-on-pear-s-versioncontrol-git

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!