Skip to content

Instantly share code, notes, and snippets.

@insane-dev
Created July 6, 2021 10:21
Show Gist options
  • Save insane-dev/b0be0ab8dd1a2307b2aefc40b1a18834 to your computer and use it in GitHub Desktop.
Save insane-dev/b0be0ab8dd1a2307b2aefc40b1a18834 to your computer and use it in GitHub Desktop.
Compile imagick on MacOS (php7.4-8)
// If you have installed PHP 8.0 on your MBP from brew you can simply build the Imagick from source:
git clone https://github.com/Imagick/imagick
cd imagick
phpize && ./configure
make
make install
// Builded extension should land in similarly directory:
// /usr/local/Cellar/php/8.0.0_1/pecl/20200930/
// and finally, you can enable it in your php.ini by adding:
extension="imagick.so"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment