mampp下安装laravel框架

之前安装larabel框架一直报错

Writing lock file

Generating autoload files

Mcrypt PHP extension required.

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

原因:

提示php的mcrypt扩展没有安装但是查看phpinfo中有

想到到mac自带了php导致的

处理方法:

 which php  查看php

 mv /user/bin/php /user/bin/php.old

 sudo ln  /Applications/MAMP/bin/php/php5.4.19/bin/php /user/bin/php

 composer create-project laravel/laravel learnlaravel 4.2.11

安装文档

http://www.lvwenhan.com/laravel/398.html


你可能感兴趣的:(mampp下安装laravel框架)