以前安装larabel框架一直报错php
Writing lock filehtml
Generating autoload fileslaravel
Mcrypt PHP extension required.composer
Script php artisan clear-compiled handling the post-install-cmd event returned with an error框架
缘由:post
提示php的mcrypt扩展没有安装可是查看phpinfo中有ui
想到到mac自带了php致使的spa
处理方法:htm
which php 查看phpip
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