Les applications plus anciennes utilisent CentOS 5.11 et ImageMagick-6.2.8-8, donc Mettez-le à niveau vers CentOS 7.
curl -L https://sourceforge.net/projects/imagemagick/files/old-sources/6.x/6.2/ImageMagick-6.2.8-8.tar.gz/download -o ImageMagick-6.2.8-8.tar.gz
tar zxf ImageMagick-6.2.8-8.tar.gz
cd ImageMagick-6.2.8-8
./configure --prefix=/usr/local/
make
J'ai eu l'erreur suivante et il me semblait impossible d'abaisser la version zlib, alors j'ai abandonné.
/usr/include/zlib.h:1296:21: note: expected 'gzFile' but argument is of type 'struct FILE *'
ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
^
magick/blob.c:2292:13: error: 'FILE' has no member named 'have'
c=gzgetc(image->blob->file);
^
magick/blob.c:2292:13: error: 'FILE' has no member named 'have'
c=gzgetc(image->blob->file);
^
magick/blob.c:2292:13: error: 'FILE' has no member named 'pos'
c=gzgetc(image->blob->file);
^
magick/blob.c:2292:13: error: 'FILE' has no member named 'next'
c=gzgetc(image->blob->file);
^
Installez ImageMagick-6.9.9
curl -L https://sourceforge.net/projects/imagemagick/files/im6-src/ImageMagick-6.9.9-37.tar.gz/download -o ImageMagick-6.9.9-37.tar.gz
tar zxf ImageMagick-6.9.9-37.tar.gz
cd ImageMagick-6.9.9-37
./configure --prefix=/usr/local/
make
make install
ldconfig
Confirmation après l'installation
[root@centos7 ~]$ identify --version
Version: ImageMagick 6.9.9-37 Q16 x86_64 2020-03-05 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC OpenMP
Delegates (built-in): bzlib jng jpeg lzma png xml zlib
Recommended Posts