安装ImageMagick

能帅
2023-12-01

下载地址:

https://imagemagick.org/download/ImageMagick-7.0.8-41.tar.gz

 

安装命令:

tar xfv ImageMagick-7.0.8-41.tar.gz
cd ImageMagick-7.0.8-41
./configure
make && make install

验证(安装成功如下):

[root@ecs-bbc4-0002 ImageMagick-7.0.8-41]# convert --version
Version: ImageMagick 7.0.8-41 Q16 x86_64 2019-04-22 https://imagemagick.org
Copyright: © 1999-2019 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI OpenMP 
Delegates (built-in): bzlib fontconfig freetype jng jpeg png x xml zlib

报错:

[root@ecs-bbc4-0002 ImageMagick-7.0.8-41]# convert --version
convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.6: cannot open shared object file: No such file or directory

 

如上报错解决方式:

ldconfig /usr/local/lib

 

 类似资料: