Upgrading Ghostscript to the latest version

From MiRTA PBX documentation
Jump to navigation Jump to search

MIRTA PBX will be supported on CentOS 6 until I have clients on it, but while several important packages are keep updated with this CentOS version, one important is missing: Ghostscript, giving problems in processing more recent PDF versions, like 1.7. While I was unable to create a valid RPM, it is possible to compile and install from the source code:

 yum -y install gnutls-devel
 cd /usr/local/src
 wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs952/ghostscript-9.52.tar.gz
 tar xzvf ghostscript-9.52.tar.gz
 cd ghostscript-9.52
 ./configure
 make
 make install

Once the new Ghostscript is installed, you need to remove the old one and link it to the new one.

 \rm /usr/bin/gs
 ln -s /usr/local/bin/gs /usr/bin/gs