2013-01-07 43 views
2

*更新:这个问题可以通过减少目录深度*Symfony的2.1-X /作曲ErrorException与DoctrineBundle

我试图安装最新的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上的混帐击用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> 
+0

你能粘贴完整的输出吗? – Seldaek

+0

这很奇怪,但是事实如此:减少安装目录的深度也帮助我解决了同样的问题。 –

+0

我做了一些挖掘,发现这是由于在Windows中限制路径+文件名。 在此处查找更多内容:[NTFS中的最大文件名长度](http://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista) –

回答

0

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

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