How to install ImageMagick (imagick) into PHP 8

preview_player
Показать описание
Now that we recommend PHP 8 as the ideal version upon which to run XenForo, more people are going to discover that the standard `pecl install imagick` command is currently broken.

Never fear, there's still a way to get the imagick module installed into PHP 8.
Рекомендации по теме
Комментарии
Автор

After a day and a half without results I broke my laravel I broke my sql I broke everything late enough to configure my computer again and finally with your video it worked for me you are a genius bro thank you very much

sergiomanuelpozosmoran
Автор

On macOS Big Sur on Apple Silicon (ARM), you may encounter the following error when running make install:
fatal error: 'pcre2.h' file not found

You may simply fix it by copying Homebrew's version into the current (imagick's) directory and re-running make install:
cp .
_You may need to change the pcre2/{version number} to match yours._

Tested and working in macOS Big Sur 11.4 with PHP 8.0.7

meyegui
Автор

In my case it did not work. First 'make' did not work initally. I had to tun 'brew update && brew install imagemagick' first and the try 'make' again. When it finished, the module was still not recognised. I run >. php -r 'echo "imagick is ")."installed\n";' To check if it was installed. No luck :(

cobianzo
Автор

why in my mac "command not found"

Apikkondang
Автор

After I run "pecl install imagick", I get an error: "Configure: error: not found. Please provide a path to MagickWand-config or Wand-config program."

teddyruxpin