- You have Ghostscript installed, right? Otherwise
sudo apt-get install ghostscript - This is important and installs the headers (
iapi.hetc) which are required but don't come with the default Ghostscript package:sudo apt-get install libgs-dev - I also needed
sudo apt-get install gs-esp - For me the pre compiled version of ImageMagick never accepted Ghostscript, so let's remove it:
sudo apt-get --purge remove imagemagick - Get the source of ImageMagick, untar it,
cd ImageMagick-xx ./configure --with-gslib=yes[and what else you need]- Confirm in the output near the bottom
gslib yes yesand notgslib yes no makemake install- Run
convert -list configure | grep DELEGATES=>DELEGATES bzlib djvu freetype gs jpeg jng jp2 lcms png tiff x11 xml zlib - See the
gsin there? You got it!
Created
October 24, 2012 22:29
-
-
Save leomelzer/3949356 to your computer and use it in GitHub Desktop.
Installing ImageMagick & Ghostscript on Ubuntu
Thanks for this gist! It's a bit outdated, but here's what I got to work for me on Docker for a Rails app.
gs-espno longer exists- If installing via a Dockerfile, the order matters (see below)
- it plays nice with
imagemagickso no longer need to runmakeormake install😄
FROM ruby:2.3.0
RUN apt-get update -qq && apt-get install -y \
ghostscript \
libgs-dev \
imagemagick
Thanks! Simply adding "ghostscript" to our Dockerfile apt-get lines solved an issue with Rmagick, ImageMagick, and "Font not found".
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have the same problem, don't change the value for OpenJP2 with: ./configure --with-openjp2=yes --with-jpeg=yes
OpenJP2 --with-openjp2=yes no
Thanks in advance.