How to upgrade to latest version of Ghostscript on Linux/Unix

For a new project, I need to use the latest verison of Ghostscript (at time of going to pixel, this is v9.21). However the CentOS yum install will only give me version 8.7.

Some Googling gave me some helpful answers, including downloading the latest version from the website and using then building manually. Following the instructions required me open a terminal and type:

./configure

Which would give me the error:

-bash: ./configure: No such file or directory

Turns out, I was downloading the latest x64 binary file from the Ghostscript website (which shouldn’t be used in a live, production environment). Actully what I needed was the source files.

So the full instructions to install the latest version of Ghostscript (v9.21) from a terminal session:

wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs921/ghostscript-9.21.tar.gz

./configure

make

make install

You should be able to execute and check the version:

/usr/local/bin/gs -v

Which outputs:

GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc.  All rights reserved.

Voila.

One thought on “How to upgrade to latest version of Ghostscript on Linux/Unix

  1. Derek

    Thanks for posting this! I’m on centos 7 and my yum install and yum update were only getting up to ghostscript 9.07. After manually installing ghostscript 9.21 (I also needed yum install gcc*) my problem (ImageMagick not converting pdfs) was fixed!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *