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

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.

Leave a Comment