简体   繁体   中英

Symfony 2.1 doctrine fixtures installation

I am using latest symfony 2.1 and trying to install the doctrine fixture bundle. I followed the instructions listed here .

Install composer and git as well. But now when I am trying to update the vendor libraries ( php composer.phar update ) I am getting the following error:

Loading composer repositories with package information

Updating dependencies
  - Removing doctrine/dbal (2.3.0)
vendor\doctrine\dbal\lib\Doctrine - The directory is not empty.
 [RuntimeException]
  Could not completely delete vendor/doctrine/dbal,
   aborting.

How can I solve this issue?

This occurs when a package directory in the vendor dir is locked for some reason by another application. This tends to happen on windows where many things can lock a directory/file.

If it's an intermittent issue, running composer update should fix it, but if it persists try to remove vendor\\doctrine\\dbal\\lib\\Doctrine by hand.

If it is really locked you won't be able to delete it either unless you close anything locking that dir. Using Unlocker can assist you if you have no idea what is holding a lock over the directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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