I try to run on OSX:
$ composer update
Error:
laravel/framework v5.0.9 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
.....
Then I try to get ext-mcrypt by:
$ sudo php5enmod mcrypt
Error: php5enmod: command not found.
Then I fix it by:
$ brew install php5-mcrypt.
Error: No available formula for php5-mcrypt.
So, t try:
$ brew install php54-mcrypt --without-homebrew-php ( Error: Unsupported PHP API Version).
$ brew doctor
But it not work for me.
The best thing that I can recommend is using Laravel Homestead. It's the best way that I have found to get your thing working. It's as easy as drinking a cup of cold coffee. Homestead comes in with a lots of stuff like:
And plus you can deploy multiple PHP Sites without managing anything like this.
Finally i fix this by other way:
$ brew tap homebrew/php
Then:
$ brew install php54-mcrypt
if get:
Error : Formulae found in multiple taps:
Just use: $ brew untap josegonzalez/php
Reason: josegonzalez/php moved to homebrew/php.
Thank you!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.