Mac installed through the brew of PHP, may use the--debug identity, php command line, always appear "Unable to initialize module"

Source: Internet
Author: User
Tags install php

The Mac installs PHP through brew, as well as the PHP module, and a "Unable to initialize module" appears consistently. Also has not known for any reason, has been placed. Today, see Laravel Image Dependency Package "intervention", want to use "Imagick" image Library, found that this problem led to not load Imagick, only Google. Found the following address, not previously noticed:

https://github.com/Homebrew/homebrew-php/issues/1743

explained:

If you are compile PHP with debug, you'll have to install extensions from source as.

Once we install PHP, using "--debug", we should install the extension from the source code instead of "Bintray binary".

Brew is installed by default from "Bintray binary", and we can install it by passing in the "-fs" parameter to install it from the source code.

Brew Remove Php71-imagick

Brew Install Php71-imagick-fs


Summarize:

If you have time to look at the address above, it should be brew to support the official documentation of the PHP installation

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.