Php Symfony2安装错误:不存在服务“;“安全.认证.工厂.表格”;

Php Symfony2安装错误:不存在服务“;“安全.认证.工厂.表格”;,php,symfony,Php,Symfony,我试图用这些在我的ubuntu 10.04机器(32位)上安装Symfony2,但我一直遇到这个异常 $./bin/vendors install ... HEAD is now at 41b5913 Merge pull request #27 from stof/disable_profiler PHP Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a

我试图用这些在我的ubuntu 10.04机器(32位)上安装Symfony2,但我一直遇到这个异常

$./bin/vendors install ... HEAD is now at 41b5913 Merge pull request #27 from stof/disable_profiler PHP Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "security.authentication.factory.form". in /home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache on line 202 PHP Stack trace: PHP 1. {main}() /home/yvoyer/www/calendar.local/trunk/app/console:0 PHP 2. Symfony\Component\Console\Application->run() /home/yvoyer/www/calendar.local/trunk/app/console:22 PHP 3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/Console/Application.php:118 PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:66 PHP 5. Symfony\Component\HttpKernel\Kernel->boot() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80 PHP 6. Symfony\Component\HttpKernel\Kernel->initializeContainer() /home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:513 PHP 7. Symfony\Component\HttpKernel\Kernel->buildContainer() /home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:779 PHP 8. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:868 PHP 9. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:437 PHP 10. Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass->process() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:119 PHP 11. Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass->process() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfigurationPass.php:39 PHP 12. Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension->load() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/DependencyInjection/Compiler/MergeExtensionConfigurationPass.php:42 PHP 13. Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension->createListenerFactories() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php:49 PHP 14. Symfony\Component\DependencyInjection\ContainerBuilder->get() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php:596 PHP 15. Symfony\Component\DependencyInjection\Container->get() /home/yvoyer/www/calendar.local/trunk/vendor/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:316 Segmentation fault 美元/箱/供应商安装 ... HEAD现在是来自stof/disable#U探查器的41b5913合并拉取请求#27 PHP Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:您请求了一个不存在的服务“security.authentication.factory.form”。在第202行的/home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache中 PHP堆栈跟踪: PHP1。{main}()/home/yvoyer/www/calendar.local/trunk/app/console:0 PHP2。Symfony\Component\Console\Application->run()/home/yvoyer/www/calendar.local/trunk/app/Console:22 PHP3。Symfony\Bundle\FrameworkBundle\Console\Application->doRun()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Component/Console/Application.php:118 PHP4。Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:66 PHP5。Symfony\Component\HttpKernel\Kernel->boot()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80 php6。Symfony\Component\HttpKernel\Kernel->initializeContainer()/home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:513 PHP7。Symfony\Component\HttpKernel\Kernel->buildContainer()/home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:779 PHP8。Symfony\Component\DependencyInjection\ContainerBuilder->compile()/home/yvoyer/www/calendar.local/trunk/app/bootstrap.php.cache:868 PHP 9。Symfony\Component\DependencyInjection\Compiler\Compiler->compile()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:437 php10。Symfony\Component\HttpKernel\dependencyinject\MergeExtensionConfigurationPass->process()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Component/dependencyinject/Compiler/Compiler.php:119 菲律宾比索11。Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfiguration Pass->process()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Component/HttpKernel/DependencyInjection/MergeExtensionConfiguration Pass.php:39 菲律宾比索12。Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension->load()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Compiler/MergeExtensionConfigurationPass.php:42 菲律宾比索13。Symfony\Bundle\SecurityBundle\DependencyInjection\SecurityExtension->createListenerFactorys()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php:49 菲律宾比索14。Symfony\Component\DependencyInjection\ContainerBuilder->get()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php:596 菲律宾比索15。Symfony\Component\DependencyInjection\Container->get()/home/yvoyer/www/calendar.local/trunk/vendor/Symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:316 分段故障 我甚至看不到默认的应用程序。 我尝试在有供应商和没有供应商的情况下安装它,但仍然会出现相同的错误

欢迎任何帮助

更新:

我试图从2.0.10而不是2.0.9的源代码中从头开始重新安装所有内容,但我得到了相同的错误

我成功地在另一台Pc(ubuntu 11.10 64位)上使用相同的源代码安装了Symfony2,没有任何错误

  • 运行app/check.php时,除了php加速器之外,一切都正常。我不明白为什么它会引起任何问题,因为它在我的另一台机器上没有它的情况下运行良好
  • 我的php版本可能是问题所在(5.3.2)
你有什么建议吗

更新#2

我试图按照inanimatt的建议重建
bootstrap.php.cache
文件,但没有任何运气。我刚刚注意到,
/bin/vendors安装
导致了一个分段错误,我不知道它以前是否存在

此外,我还跟踪了供应商脚本中导致问题的命令。我发现在脚本运行
应用程序/控制台资产:install
之前,一切都很顺利

有什么提示吗

  • 清除缓存
  • 执行:php app/config检查
  • 检查以下各项的配置:
  • 检查yourvhost/Check.php以检查所需的php库
  • 问候,,
    Max

    上面的错误似乎是引导缓存中缺少内容,这导致
    bin/vendors install
    脚本运行的任务失败。尝试删除该文件并通过运行以下命令重新生成它:

    php vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php
    
    从这里很难知道发生这种情况的原因-您是否修改了任何配置文件


    如果与供应商一起安装Symfony2标准版,则无需运行
    bin/vendors install
    。您只需运行
    app/check.php
    以确保系统设置和文件权限正常,然后编辑
    app/config/parameters.ini
    以设置数据库。

    在长时间尝试上述所有答案后,我终于找到了问题所在

    问题是我在服务器上安装了xdebug,配置
    xdebug.show\u exception\u trace
    设置为1。这向我展示了发生的所有异常,并导致上面的堆栈跟踪

    我对这行进行了注释,在配置应用程序时一切都照常进行


    感谢那些帮助我的人,我希望这能帮助其他人

    谢谢你的回复,你说的我都试过了,除了3个。我在deps文件中没有看到任何对的引用,它应该存在吗?我最初是与供应商一起安装Symfony的,也许我运行了
    bin/vendors
    s