Laravel-5-Mac php execute command appears PHP Warning

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

  • Related Article

    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.