Cài php 71 mcrypt cho mac
These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS. Install Mcrypt using
Homebrew and PECL (comes with PHP) Find your $ php -i | grep "Loaded Configuration File" Loaded Configuration File => /usr/local/etc/php/7.3/php.ini Add this line to your extension=/usr/local/Cellar/php/7.3.x/pecl/20180731/mcrypt.so Historic AnswerInstall Mcrypt using Homebrew # PHP 7 $ brew install php70-mcrypt # PHP 5 $ brew install php56-mcrypt --without-homebrew-php Add this line to # PHP 7 extension="/usr/local/Cellar/php70-mcrypt/7.0.x/mcrypt.so" # PHP 5 extension="/usr/local/Cellar/php56-mcrypt/5.6.x/mcrypt.so" You are ready to go! UpgradeUpgrade Mcrypt using Homebrew $ brew reinstall -fs php71-mcrypt On macOS High Sierra I did this steps: 1- Search the package:
Result:
2- Search my php version to know what can I need to install:
Result:
3- Install the correct package, for me was 7.1.7 => homebrew/php/php71-mcrypt
4- Find the find "mcrypt.so" extension file
Result:
5- Search the php.ini
Result (if exist):
6- Add the next line at the end on /etc/php.ini (see the last step your correct path) the extension mcrypt.so
Finish, you can now execute your command. Sorry, I had missed that. What I was looking at was this part: – EpicVoyage Apr 17, 2019 at 17:49 I'm trying to run Laravel's repository and it throws this error:
I've googled almost every link and couldn't solve it. So as I realize I need to install mcrypt extension. So what I've tried is:
Also I remember trying to install autoconf and some other things I guess mcrypt works for php-cli, but not on web version My php version is 7.1, nginx 1.12.0, mac os El Captain |