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