2015-08-08 50 views
1

我需要在ubuntu/eclipse中创建一个symfony项目的帮助,我收到很多警告。我使用:Symfony启动

的ubuntu:15.04 日食:4.5.0火星 symfony的功能:1.1.0.20150705

我使用Symfony的功能来创建使用内置在向导的项目。 项目细节:

PHP版本:5.6 Symfony的版本:v2.7.3 覆盖composer.jason值:我使用默认

我与应用程序的错误/ bootstrap.php.cache

也许有是一个很好的教程,可以帮助我,但直到现在我还没有找到一个... 也许elipse不适合symfony项目。

这里有一些错误信息:

!ENTRY com.dubture.composer.core 4 4 2015-08-06 20:49:38.196 
!MESSAGE PHP Warning: require_once(/var/www/test3/app/bootstrap.php.cache): failed to open stream: No such file or directory in /var/www/test3/app/console on line 10 
PHP Fatal error: require_once(): Failed opening required '/var/www/test3/app/bootstrap.php.cache' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/test3/app/console on line 10

和第二

!ENTRY com.dubture.composer.core 4 4 2015-08-06 20:50:29.267 
!MESSAGE Installing symfony/framework-standard-edition (v2.7.2) 
    - Installing symfony/framework-standard-edition (v2.7.2) 
    Loading from cache 
Created project in test1 
> SymfonyStandard\Composer::hookRootPackageInstall 
Loading composer repositories with package information 
Installing dependencies (including require-dev) from lock file 
Your requirements could not be resolved to an installable set of packages. 
    Problem 1 
    - Installation request for sensiolabs/security-checker v2.0.5 -> satisfiable by sensiolabs/security-checker[v2.0.5]. 
    - sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    Problem 2 
    - sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - sensio/distribution-bundle v4.0.0 requires sensiolabs/security-checker ~2.0 -> satisfiable by sensiolabs/security-checker[v2.0.5]. 
    - Installation request for sensio/distribution-bundle v4.0.0 -> satisfiable by sensio/distribution-bundle[v4.0.0].

那一块整个日志文件的,这些都是我在GUI获得的消息。

+1

我会推荐一些发布在实际的错误信息,否则将很难(几乎不可能)解决您的问题。 – qooplmao

回答

2

由于无法安装所有依赖项,因此Composer安装失败并显示错误(请参阅第二组错误消息)。

它说的错误消息:

the requested PHP extension curl is missing from your system.

你需要安装这个扩展库来获得所有必需的文件,使你的项目启动和运行。

+0

是不是有一个为symfony配置eclipse的手册?我已经安装了 php5-curl我没有那个bootstrap错误,但现在我有6个新错误和228个警告... – lukasg

1

当Symfony2启动时,它需要一些引导cookie,最终将被删除。根据我的经验,对于ACME软件包示例页面存在'bootstrap.php.cache'文件,它不是必需的文件。

解决方案很简单。 您只需要在/ var/www/test3/app /文件夹中创建'bootstrap.php.cache'文件。 'bootstrap.php.cache'的内容可以为空。

touch bootstrap.php.cache 

希望这对你很好。祝你好运!

1

这可能是因为,您没有权限读取这些文件,请在这些文件中检查此sudo chmod 755。如果你没有这个文件,创建它如何建议YONGSOO KIM

解决方案很简单。您只需要在/ var/www/test3/app /文件夹中创建bootstrap.php.cache 文件。 bootstrap.php.cache 的内容可以为空。