使用DoctrineBundle的Symfony 2.1-x / Composer ErrorException

时间:2013-01-07 10:36:38

标签: doctrine symfony-2.1 composer-php

*更新:可以通过减少目录深度*

来解决此问题

我尝试使用composer以推荐的方式安装最新的Symfony版本(2.1.6,2.1.5,2.1.x-dev),但它总是失败并出现同样的错误:

  

C:\ Users \ made \ eclipse-workspace \ template-compiler \ template-compiler \ lib \ server \ symfony \ vendor \ doctrine \ doctrine-bundle \ Doctrine \ Bundle \ DoctrineBundle \ b05c336283dc24eb535a50f89ce9d91c.0 - Das Handle ist ung ¬tig。

截至目前,搜索没有给我任何进一步的线索,我想避免从头开始创建所有内容。我尝试了作曲家的自我udpate功能和上面提到的所有版本,但安装仍然失败。我在PHP 5.3.8上使用Win7上的git Bash,但我也尝试了PHP 5.4.10

完成输出:

C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server>C:\Users\made\AppData\Roaming\Composer\bin\composer
 create-project symfony/framework-standard-edition symfony 2.1.6
Installing symfony/framework-standard-edition (v2.1.6)
  - Installing symfony/framework-standard-edition (v2.1.6)
    Loading from cache

Created project in symfony
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing doctrine/common (2.3.0)
    Loading from cache

  - Installing doctrine/dbal (2.3.1)
    Loading from cache

  - Installing twig/twig (v1.11.1)
    Loading from cache

  - Installing symfony/symfony (v2.1.6)
    Loading from cache

  - Installing doctrine/doctrine-bundle (v1.0.0)
    Downloading: 100%
C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server\symfony\vendor\doctrine\doctrine-bundle\Doctrine\Bu
ndle\DoctrineBundle\5338efeb67b3e71765a5179fbadb1633.0 - Das Handle ist ungültig.



  [ErrorException]
  ZipArchive::extractTo(C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server\symfony\vendor/doctrine/
  doctrine-bundle/Doctrine/Bundle/DoctrineBundle/DoctrineBundle-1.0.0\Tests\DependencyInjection\Fixtures\Bundles\Vendor\Annotat
  ionsBundle/AnnotationsBundle.php): failed to open stream: Invalid argument



create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-custom-installers]
[--no-scripts] [--no-progress] [--keep-vcs] package [directory] [version]



C:\Users\made\eclipse-workspace\template-compiler\template-compiler\lib\server>

1 个答案:

答案 0 :(得分:0)

可以通过减少目录深度来解决问题

PS:现在我有rep分数来解决这个问题......