Skip to content

Instantly share code, notes, and snippets.

@plonknimbuzz
Forked from marcinwol/imagemagick7.sh
Last active November 28, 2018 08:46
Show Gist options
  • Save plonknimbuzz/e97cd0416d37c548cb370482c354a617 to your computer and use it in GitHub Desktop.
Save plonknimbuzz/e97cd0416d37c548cb370482c354a617 to your computer and use it in GitHub Desktop.
Install ghostscript, ffmpeg, ImageMagick 7 on Ubuntu 16.04
sudo apt install ffmpeg ghostscript libgs-dev build-essential autoconf automake autopoint chrpath cm-super-minimal debhelper dh-autoreconf dh-strip-nondeterminism doxygen doxygen-latex gir1.2-rsvg-2.0 graphviz libbz2-dev libcairo-script-interpreter2 libcairo2-dev libcdt5 libcgraph6 libclang1-3.6 libdjvulibre-dev libexif-dev libfftw3-bin libfftw3-dev libfftw3-long3 libfftw3-quad3 libfile-stripnondeterminism-perl libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev libgvc6 libgvpr2 libharfbuzz-dev libharfbuzz-gobject0 libice-dev libilmbase-dev libjasper-dev libjbig-dev libjpeg-dev libjpeg-turbo8-dev libjpeg8-dev libjs-jquery liblcms2-dev libllvm3.6v5 liblqr-1-0-dev liblzma-dev libobjc-5-dev libobjc4 libopenexr-dev libpango1.0-dev libpathplan4 libpcre3-dev libpcre32-3 libpcrecpp0v5 libperl-dev libpixman-1-dev libpng12-dev libpotrace0 libptexenc1 libpthread-stubs0-dev librsvg2-bin librsvg2-dev libsigsegv2 libsm-dev libsynctex1 libtexlua52 libtexluajit2 libtiff5-dev libtiffxx5 libwmf-dev libx11-dev libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev libxml2-dev libxml2-utils libxrender-dev libxt-dev libzzip-0-13 m4 pkg-kde-tools po-debconf preview-latex-style tex-common texlive-base texlive-binaries texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-render-dev x11proto-xext-dev xorg-sgml-doctools xsltproc xtrans-dev zlib1g-dev libtiff5-dev xorg-dev libopenjp2-7-dev -y
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xzvf ImageMagick.tar.gz && cd ImageMagick-7.0.*/
#build imagemagick 7 with ghostscript
./configure --with-gslib=yes
make
sudo make install
sudo ldconfig /usr/local/lib
#check ghostscript installed in imagemagick or not
magick -list configure | grep DELEGATES
#to check use below
identify -version
magick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment