Install ImageMagick-6.2.x series on CentOS7.7

――In conclusion, it was impossible because the version of zlib did not match, so I upgraded the ImageMagick version.

Older applications use CentOS 5.11 and ImageMagick-6.2.8-8, so Upgrade it to 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

I got the following error and it seemed impossible to lower the zlib version, so I gave up.

/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);
             ^

Install 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 after 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

Install ImageMagick-6.2.x series on CentOS7.7
Install Chrome on CentOS 7 series
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install awscli on centos7
Install Chainer on CentOS 6.7
Install Python 3.8 on CentOS 7 (SCL)
Install Python 3.8 on CentOS 8 (AppStream)
Steps to install MySQL 8.0 on CentOS 8.1
raspberry pi 4 centos7 install on docker
Steps to install VirtualBox on CentOS
Install java (Oracle JDK14) on CentOS7
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python on CentOS using Pyenv
How to install Maven on CentOS
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv
Enable sar command on CentOS (install sysstat)
CentOS8 --Install --Django
Install Mecab on Linux (CentOS) with brew
How to install Apache (httpd) on CentOS7
How to install Eclipse GlassFish 5.1.0 on CentOS 7
How to install Apache (httpd) on CentOS8
Install PostgreSQL from source code on CentOS
CentOS8 --Install --Python3
Install pyenv and rbenv on CentOS system-wide
[Ansible] Install dnf on Centos7 with Python3 interpreter
[Failure] Install Stack Overflow Clone Askbot on CentOS 6.4
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install mecab on Marvericks
Install Tensorflow on Mac
Install TensorFlow on Ubuntu
Install python on WSL
Install pyenv on mac
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install aws-cli on MacPorts
Install pygraphviz on Windows 10
Install Docker on AWS
Install Python 3.3 on Ubuntu 12.04
Install Chainer 1.5.0 on Windows