composer php5 安装 laravel 问题,急求解决办法???谢谢

composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::registerCoreContainerAliases() in /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/vendor/laravel/framework/src/Illuminate/Foundation/start.php on line 106
PHP Stack trace:
PHP 1. {main}() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/artisan:0
PHP 2. require_once() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/artisan:30
PHP 3. require() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/bootstrap/start.php:60
Script php artisan clear-compiled handling the post-install-cmd event returned with an error

[RuntimeException]

Error Output: PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::registerCoreContainerAliases() in /home/q

iulihua/Zend/workspaces/DefaultWorkspace/locallaravel/vendor/laravel/framework/src/Illuminate/Foundation/start.php on line 106

PHP Stack trace:

PHP 1. {main}() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/artisan:0

PHP 2. require_once() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/artisan:30

PHP 3. require() /home/andy/Zend/workspaces/DefaultWorkspace/locallaravel/bootstrap/start.php:60

查看代码是有这个函数的:
/**
* Register the core class aliases in the container.
*
* @return void
*/
public function registerCoreContainerAliases()
{
$aliases = array(
'app' => 'Illuminate\Foundation\Application',
'artisan' => 'Illuminate\Console\Application',
'auth' => 'Illuminate\Auth\AuthManager',
'auth.reminder.repository' => 'Illuminate\Auth\Reminders\ReminderRepositoryInterface',
已邀请:

wormcc

赞同来自:

尝试移除 bootstrap/compiled.php文件后再尝试一下。

melody

赞同来自:

好了,可是访问index.php的时候cordump了,是什么原因呢?

[Fri Sep 12 15:40:25.647505 2014] [core:notice] [pid 12161] AH00051: child pid 6331 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:40:25.647560 2014] [core:notice] [pid 12161] AH00051: child pid 6336 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:40:25.647578 2014] [core:notice] [pid 12161] AH00051: child pid 6341 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:43:48.855327 2014] [core:notice] [pid 12161] AH00051: child pid 6335 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:43:48.855454 2014] [core:notice] [pid 12161] AH00051: child pid 6339 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:43:48.855501 2014] [core:notice] [pid 12161] AH00051: child pid 6340 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:43:53.861641 2014] [core:notice] [pid 12161] AH00051: child pid 6338 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Fri Sep 12 15:43:54.865123 2014] [core:notice] [pid 12161] AH00051: child pid 6342 exit signal Segmentation fault (11), possible coredump in /etc/apache2

要回复问题请先登录注册