4

I have been trying to install Buzz for Symfony2. I added it to the deps file, and tried to update my vendors :

php bin/vendors update

The command simply tells me that I've installed the standard version, and that I should try to use :

php bin/vendors install --reinstall

instead. Which I did.

But then an error pops in and tells me :

Updating deps.lock
sh:/var/www/Symfony/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php: not found
PHP Fatal error:  Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37
PHP Fatal error:  Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in /var/www/Symfony/app/autoload.php on line 37

And then nothing works anymore, which is not surprising because my vendors folder is almost empty.

Has anyone encountered this problem before? Any clue on how to fix it?

Edit :

I found out the origin of this error. I didn't have git installed, so I did :

sudo apt-get install git-core

Check this link for more info on that : http://comments.gmane.org/gmane.comp.php.symfony.symfony2/8239

However I'm having another error now ("Looked for namespace "buzz.client.curl", found none"). I'm making another thread for that one, as it is not the same problem (link here).

11
  • What happens when you delete deps.lock and then php bin/vendors install -reinstall? May 16, 2012 at 15:44
  • 1
    My deps file (with Buzz in it) is: pastebin.com/AHzFzXqc but warning: it contains a new version of Doctrine (not included in current symfony release).
    – gremo
    May 16, 2012 at 15:50
  • I get the same error, even with your deps file. May 16, 2012 at 15:50
  • Add new line at the end of the file May 16, 2012 at 15:53
  • 1
    @meze didn't know the buil_bootstrap thing, here is the lock pastebin.com/RAqsxwq9
    – gremo
    May 17, 2012 at 10:09

3 Answers 3

3

That's not the right way to update your vendors. Per the docs

There is also a php bin/vendors update command, but this has nothing to do with upgrading your project and you will normally not need to use it. This command is used to freeze the versions of all of your vendor libraries by updating them to the version specified in deps and recording it into the deps.lock file.

Ergo, all you need to do is run php bin/vendors install (I know, it's confusing. I partially blame them for poorly naming the sub-command)

EDIT

To help resolve your current issues, try these steps

  1. rm -rf vendor/*
  2. rm -rf app/cache/*
  3. rm app/bootstrap.php.cache
  4. php bin/vendors install

Hope it works

2

Try to remove everything from "vendor" folder and run

php bin/vendors install

command

4
  • I did as well ^^ Actually, now, the install command tells me "The deps version file is not valid" May 16, 2012 at 15:47
  • can you show me your deps file? and also try to remove deps.lock file May 16, 2012 at 15:47
  • @a.tereschenkov i don't think that removing deps.lock is a good idea. AFAIK it used for lock the version of each repository to be downloaded (a stable one, i suppose).
    – gremo
    May 16, 2012 at 15:51
  • @Gremo I think symfony will recreate this file but it will be better to have a copy of it May 16, 2012 at 15:56
2

Before you add in deps file copy all the content of deps file in any of your text editor,then delete all your contents of deps and add the Buzz link in deps only. Then try the below command

php bin/vendors install --reinstall

this will install the BUZZ bundle safely. After installing BUzz bundle you can paste all the deps content that you have copied earlier. If you are trying this make sure to download new symfony project and try this. May be this will helps you. I tried it earlier on one of my project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.