brew install [email protected] brew install imagemagick pecl install imagick
cd /tmp curl -s -O https://pear.php.net/install-pear-nozlib.phar sudo php install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
brew install autoconf
sudo pear channel-update pear.php.net sudo pecl channel-update pecl.php.net sudo pear upgrade-all --ignore-errors
xcode-select --install
Open /etc/php.ini and add .:/usr/local/lib/php/pear to include_path(if /etc/php.ini does not exist, create it with the following content). include_path = ".:/usr/local/lib/php/pear"
pecl install imagick
pecl config-get ext_dir | pbcopy
/usr/local/etc/php/7.4/php.ini
open php.ini search for extension= and at the end of extension list add extension=imagick.so
mkdir /usr/local/lib/php/pecl
sudo pecl install imagick
Recommended Posts