简体   繁体   English

通过Composer安装时出现Symfony2错误

[英]Symfony2 error when installing via composer

I am trying to install Symfony2 via composer on an Ubuntu server: 我正在尝试在Ubuntu服务器上通过composer安装Symfony2:

php composer.phar create-project symfony/framework-standard-edition /var/www/dev/myproject 2.1.7

but it fails with the following error: 但失败并显示以下错误:

- Installing doctrine/doctrine-bundle (v1.1.0)
    Downloading: 100%
    rm: cannot remove `/var/www/dev/myproject/vendor/doctrine/doctrine-bundle/Doctrine/Bundle/DoctrineBundle': Directory not empty



  [ErrorException]
  ZipArchive::extractTo(): File name too long

Google didn't help, any idea what the problem could be? Google没有帮助,知道可能是什么问题?

Thanks! 谢谢!

尝试进入要安装它的目录,然后执行

php composer.phar create-project symfony/framework-standard-edition myproject 2.1.7

I guess the problem had to do with the linux server being a VM and the folder I tried to install symfony2 in was a folder shared from windows (the host) ... 我猜问题出在与Linux服务器是一台虚拟机有关,我尝试在其中安装symfony2的文件夹是Windows(主机)共享的文件夹...

After rebooting that error went away (leaving me with lots of random composer errors, but those are not in the scope of this question ;)) 重新启动后,该错误消失了(给我留下了许多随机的作曲家错误,但这些不在本问题范围内;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM