ubuntu 安装imagepick笔记
cd /tmp
wget http://pecl.php.net/get/imagick-3.4.4.tgz
tar -zxvf imagick-3.4.4.tgz
phpize
sudo ./configure --prefix=/usr/local/imagemagic
出现
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
安装依赖:
ubuntu:
sudo apt-get install build-essential
sudo apt-get install libmagickcore-dev libmagickwand-dev
再次编译:
vagrant@ubuntu-bionic:/tmp/imagick-3.4.4$ sudo ./configure --prefix=/usr/local/imagemagick
vagrant@ubuntu-bionic:/tmp/imagick-3.4.4$ sudo make -j 6 && sudo make install