When configuring the MCrypt required for LARAVEL5, follow the instructions on the Web to execute the following command
- Tar zxvf php5.6.4
- CD php5.6.4/ext/mcrypt/
- ./configure
- Phpize
- Make
- Make install
Each time you execute a PHP command, such as a php-v or composer terminal, you will be prompted:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - dlopen(/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so, 9): image not found in Unknown on line 0
How can I fix this problem, thank you: D
Reply content:
When configuring the MCrypt required for LARAVEL5, follow the instructions on the Web to execute the following command
- Tar zxvf php5.6.4
- CD php5.6.4/ext/mcrypt/
- ./configure
- Phpize
- Make
- Make install
Each time you execute a PHP command, such as a php-v or composer terminal, you will be prompted:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so' - dlopen(/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/mcrypt.so, 9): image not found in Unknown on line 0
How can I fix this problem, thank you: D
is PHP mcrypt extension is not installed, download it yourself, manually compiled will be good
Please make sure that the MCrypt library file is in the/usr/local/cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/directory.