Laravel 4 - 作曲家的问题

I'm trying to execute this command(below)

composer create-project laravel/laravel TestApp --prefer-dist

Here is the error I am getting:

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've cheked:

php -v

PHP 5.4.24

sudo composer diagnose

Checking platform settings: OK Checking git settings: OK Checking http connectivity: OK Checking disk free space: OK Checking composer version: OK

any idea??

Thanks

You're missing the mcrypt extension for PHP, which is a requirement for Laravel. Depending on what system you are, or just search for mcrypt extension.

edit: just saw your osx tag, then the first link should cover it.

On linux you can do:

sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart

if you are on a mac could try:

http://topicdesk.com/downloads/mcrypt/mcrypt-download