laravel – 错误:脚本php artisan清除编译处理返回错误的post-install-cmd事件

我试图创建一个laravel项目与这:

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

我得到这个:

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]

我试过这个教程来解决这个,但问题仍然存在
http://laravel.io/forum/02-08-2014-difficulty-installing-laravel-getting-error-mcrypt-php-extension-required?page=1

我能做什么?谢谢您的帮助

最佳答案
下面的步骤对我有帮助的Ubuntu:

>安装php5-mcrypt使用:

apt-get install php5-mcrypt
>激活mcrypt扩展:

php5enmod mcrypt
>确保它已加载:

php -i | grep mcrypt

你应该看到mcrypt support =>如果已激活,则启用。

转载注明原文:laravel – 错误:脚本php artisan清除编译处理返回错误的post-install-cmd事件 - 代码日志