Mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command on the mac system. Without this extension, the installation fails. I want to use the php Command to make the installation fail... mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command of the mac system, because the installation fails without this extension, I want to use the php Command that enables the command line to use the extended php version of mamp. How can I solve this problem.
Reply content:
Mac itself comes with a php5.42. I have installed php5.49 for mamp. the built-in php does not have the mcrypt extension. mamp has this extension, however, when installing laravel, you may always use the default php terminal command of the mac system, because the installation fails without this extension, I want to use the php Command that enables the command line to use the extended php version of mamp. How can I solve this problem.
Rename/usr/local/bin/php to php. old, and soft link php/bin/php to mamp.
When laravel is installed, php-cli is called and installed using a PHP script.
I am using the brew global installation mode. You can try it.
Download the php5.4 source code and compile a mcrypt file by yourself. Why? It seems that google will find many answers
However, my practice is to ignore the system's php, homebrew re-installed a php5.5, here there are detailed tossing steps
I see this tutorial succeeded: http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-y...