未找到VersionControl_Git包

时间:2017-09-08 03:15:20

标签: php git mamp-pro

当尝试使用MAMP PRO在macOS上执行phing构建时,我收到一条消息,指出没有安装pear git包。

消息如下: Git任务依赖于PEAR的VersionControl_Git包。

但是我打字:

pear list-files versioncontrol_git

我明白了:

Installed Files For versioncontrol_git
======================================
Type Install Path
php  /Users/nick/pear/share/pear/VersionControl/Git/Object/Blob.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Object/Commit.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Object/Tree.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Util/Command.php
php /Users/nick/pear/share/pear/VersionControl/Git/Util/RevListFetcher.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Component.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Object.php
php  /Users/nick/pear/share/pear/VersionControl/Git/Exception.php
php  /Users/nick/pear/share/pear/VersionControl/Git.php
doc  /Users/nick/pear/docs/VersionControl_Git/doc/versioncontrol-git.xml
test /Users/nick/pear/tests/VersionControl_Git/tests/checkFixtures.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_GitTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_ObjectTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_Object_CommitTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_Util_CommandTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/README
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_ComponentTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_Object_BlobTest.php
test /Users/nick/pear/tests/VersionControl_Git/tests/VersionControl_Git_Object_TreeTest.php

1 个答案:

答案 0 :(得分:0)

来自PEAR installation instructions

  

验证包含路径

     

要在应用程序中使用PEAR和PEAR兼容软件包,通常使用require_once()将它们包含在PHP脚本中。
  为了实现这一点,PEAR的php_dir必须是PHP包含路径的一部分。

按照这些步骤检查是否可以让您的构建工作。