Problem:
I installed Composer and follow the quick start guide in the Laravel 4 documentation .
When running composer install or composer update I get the following error:
Script php artisan optimize handling the post-install-cmd event returned with an error...

I tried to run the following composer command:
composer create-project laravel/laravel myproject
Or use their laravel.phar :
laravel new myproject
Or get the zip version from git: https://github.com/laravel/laravel?source=c
And I still can not update using the composer.
Additional Information:
My PHP version on my Mac:
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
PHP version on MAMP: 5.4.10
I found some solutions on Google / Stack Overflow, but in my case this did not work.
php installation laravel laravel-4
Chris so
source share