1

我正在尝试通过composer安装sonataAdminBundle,如文档中所述

php composer.phar require sonata-project/doctrine-orm-admin-bundle

然后输入版本 - dev-master

Please provide a version constraint for the sonata-project/doctrine-orm-admin-bundle requirement: dev-master

它去......

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing sonata-project/block-bundle (2.2.7)
    Downloading: 100%         

  - Installing sonata-project/exporter (1.3.2)
    Downloading: 100%         

  - Installing sonata-project/jquery-bundle (1.8.3)
    Downloading: 100%         

  - Installing knplabs/knp-menu (v1.1.2)
    Downloading: 100%         

  - Installing knplabs/knp-menu-bundle (v1.1.2)
    Downloading: 100%         

  - Installing sonata-project/admin-bundle (2.2.7)
    Downloading: 100%         

  - Installing sonata-project/doctrine-orm-admin-bundle (dev-master 84aa85c)
    Cloning 84aa85cdb53dbab7204ece9510541f713102d297



  [RuntimeException]                                                                                                  
  Failed to clone https://github.com/sonata-project/SonataDoctrineORMAdminBundle.git, git was not found, check that   
  it is installed and in your PATH env.                                                                               

  sh: 1: git: not found                                                                                               




require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [packages1] ... [packagesN]

有错误,它没有找到.. 我看到 /vendors/ 中有 sonata-project 文件夹,其中包含 admin-bundle、block-bundle、教义-orm-admin-bundle、exporter、jquery bundle 文件夹。

所以一切都好吗?但是他没有找到 SonataDoctrineORMAdminBundle。我怎样才能解决这个问题?

谢谢

作曲家.json

{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "sonata-project/doctrine-orm-admin-bundle": "dev-master"
    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ],
        "post-update-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config": {
        "bin-dir": "bin"
    },
    "minimum-stability": "stable",
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.3-dev"
        }
    }
}
4

1 回答 1

2

Git 可执行文件不存在,请安装它...

于 2013-10-30T12:33:40.213 回答