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

References

posted @ 2021-02-18 17:05  五毛钱的饼  阅读(218)  评论(0编辑  收藏  举报