When configuring the mcrypt required by laravel5, follow the instructions on the Internet to execute the following command tarzxvfphp5.6.4cdphp5.6.4extmcrypt. after configurephpizemakemakeinstall, the php Command is executed every time. For example, the php-v or composer terminal prompts :... when configuring the mcrypt required by laravel5, follow the instructions on the Internet to execute the following commands:
- Tar zxvf php5.6.4
- Cd php5.6.4/ext/mcrypt/
- ./Configure
- Phpize
- Make
- Make install
The following message is displayed every time you run the php Command, such as the php-v or composer terminal:
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 by laravel5, follow the instructions on the Internet to execute the following commands:
- Tar zxvf php5.6.4
- Cd php5.6.4/ext/mcrypt/
- ./Configure
- Phpize
- Make
- Make install
The following message is displayed every time you run the php Command, such as the php-v or composer terminal:
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
The extension of php mcrypt is not installed. You can download it and compile it manually.
Check whether the mcrypt library file is in the/usr/local/Cellar/php56/5.6.4/lib/php/extensions/no-debug-non-zts-20131226/directory.