PHPWarning appears when the laravel-5-macphp executes the command

Source: Internet
Author: User
Tags zts
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.