2

* 更新:这个问题可以通过减少目录深度来解决 *

我尝试使用 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。

到目前为止,搜索没有给我更多线索,我想避免从头开始创建所有内容。我尝试了作曲家的自我更新功能和上面提到的所有版本,但安装仍然失败。我在 Win7 上使用 git Bash 和 PHP 5.3.8 但我也尝试过 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>
4

1 回答 1

0

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

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

于 2016-04-21T18:19:23.627 回答