LoginSignup
2
1

More than 3 years have passed since last update.

Install imagick on macOS Catalina + php 7.4 メモ

Posted at

brew install php@7.3
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

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1