Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Script php artisan clear-compiled handling the post-install-cmd event returned with an error

I am trying to create a laravel project with this:

Nicoles-MacBook-Pro:htdocs nicolekajatt$ composer create-project laravel/laravel guia-telefonica 

And i am getting this:

Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error      [RuntimeException]     Error Output:           create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version] 

I have tried this tutorial to fix this but the problem stills http://laravel.io/forum/02-08-2014-difficulty-installing-laravel-getting-error-mcrypt-php-extension-required?page=1

What can i do? Thanks for the help

like image 636
frankzk Avatar asked Jun 19 '14 04:06

frankzk


1 Answers

Following steps were helpful for me on Ubuntu:

  1. Install php5-mcrypt using:

    apt-get install php5-mcrypt

  2. Activate mcrypt extension:

    php5enmod mcrypt

  3. Make sure it is loaded:

    php -i | grep mcrypt

you should see mcrypt support => enabled if it is activated.

like image 151
Max Avatar answered Oct 14 '22 21:10

Max