Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save merong/f92faf9a06d1347c65b09eaa59173abf to your computer and use it in GitHub Desktop.

Select an option

Save merong/f92faf9a06d1347c65b09eaa59173abf to your computer and use it in GitHub Desktop.

Revisions

  1. @moneytoo moneytoo revised this gist Apr 6, 2017. No changes.
  2. @moneytoo moneytoo created this gist Nov 10, 2016.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    yum -y install bzip2-devel libtiff-devel giflib-devel ghostscript-devel libwmf-devel jasper-devel libtool-ltdl-devel libXext-devel libXt-devel librsvg2-devel OpenEXR-devel libwebp-devel

    rpm -ivh http://vault.centos.org/centos/7/updates/Source/SPackages/ImageMagick-6.7.8.9-15.el7_2.src.rpm
    sed -i '/BuildRequires:\tghostscript-devel/a BuildRequires:\tlibwebp-devel' /root/rpmbuild/SPECS/ImageMagick.spec
    sed -i '/Requires: pkgconfig/a Requires: libwebp' /root/rpmbuild/SPECS/ImageMagick.spec

    rpmbuild -ba /root/rpmbuild/SPECS/ImageMagick.spec

    # actual install
    rpm -Uvh --force /root/rpmbuild/RPMS/x86_64/ImageMagick-6.7.8.9-15.el7.centos.x86_64.rpm

    # if you to disable updates from CentOS repository
    yum-config-manager --save --setopt=updates.exclude=ImageMagick*;

    # verify WebP support via:
    identify -list format