ubuntu 安装imagepick笔记

1
2
3
4
5
6
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

出现

1
configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.

安装依赖:

ubuntu:

1
2
sudo apt-get install build-essential
sudo apt-get install libmagickcore-dev libmagickwand-dev

再次编译:

1
2
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

References