Last active
May 19, 2020 10:18
-
-
Save tbutcaru-gpsw/6697c9532582449c5ae9971eac52923f to your computer and use it in GitHub Desktop.
ImageMagick7 CentOS/RHEL 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prepare the env for the required dependencies: Development Tools and | |
| sudo yum -y groupinstall "Development Tools" | |
| sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| # on RHEL 7 it is recommended to also enable the optional, extras, and HA repositories since EPEL packages may depend on packages from these repositories: | |
| sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms" | |
| # Check enabled repos | |
| yum repolist | |
| # Install Dependencies | |
| sudo yum -y install bzip2-devel freetype-devel libmng-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel djvulibre-devel libwmf-devel libtool-ltdl-devel lcms2-devel libxml2-devel librsvg2-devel OpenEXR-devel openjpeg2-devel perl-devel libwebp-devel zlib-devel ghostscript-devel lzma | |
| # Build and Install ImageMagick | |
| wget https://www.imagemagick.org/download/ImageMagick.tar.gz | |
| tar xvzf ImageMagick.tar.gz | |
| cd ImageMagick-7* | |
| ./configure --prefix="/usr/local" --with-bzlib=yes --with-freetype=yes --with-openjp2=yes --with-jpeg=yes --with-lcms=yes --with-ltdl=yes --with-lzma=yes --with-openexr=yes --with-png=yes --with-tiff=yes --with-webp=yes --with-xml=yes --with-zlib=yes --with-gslib=yes --with-heic=yes | |
| make | |
| sudo make install | |
| sudo ldconfig /usr/local/lib | |
| convert -version | |
| # The output of the last command should contain: | |
| # DELEGATES = bzlib mpeg fontconfig freetype gslib jng jpeg lcms lzma openexr openjp2 pango png tiff webp wmf x xml zlib | |
| ############################################# | |
| #### OR: install from 3rd party repo (remi) | |
| ############################################# | |
| yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" --enable "rhel-ha-for-rhel-*-server-rpms" | |
| wget http://rpms.remirepo.net/enterprise/7/remi/x86_64/remi-release-7.7-2.el7.remi.noarch.rpm | |
| rpm -Uvh remi-release*rpm | |
| yum --enablerepo=remi install ImageMagick7 | |
| convert -version | |
| # The output of the last command should contain: | |
| # Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib gvc heic jbig jng jp2 jpeg lcms ltdl lzma openexr pangocairo png ps raqm raw rsvg tiff webp wmf x xml zlib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment