【问题标题】:Symfony 2.1-x / Composer ErrorException with DoctrineBundleSymfony 2.1-x / Composer ErrorException 与 DoctrineBundle
【发布时间】:2016-04-22 02:19:23
【问题描述】:

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

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

【问题讨论】:

  • 你能粘贴完整的输出吗?
  • 这很奇怪,但确实如此:减少安装目录的深度帮助我解决了同样的问题。
  • 我做了一些挖掘,发现这是由于Windows中路径+文件名的限制。在此处查找更多信息:Maximum filename length in NTFS

标签: doctrine symfony-2.1 composer-php


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2012-07-07
    • 1970-01-01
    • 2015-02-27
    • 2012-07-22
    • 2012-06-19
    • 2012-08-10
    • 1970-01-01
    • 2012-08-18
    • 1970-01-01
    相关资源
    最近更新 更多