Updating Ghostscript on CentOS 5.2 (ghostscript 8.63)

Today I needed a newer version of ghostscript on my server pool for some back-end processing we do. Updating ghostscript for RHEL5 / CentOS 5.2 turned out to be a pain! I was nearly stucked into RPM hell!

   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.
ERROR: /undefined in /BXlevel
Operand stack:
   7   0   1   --dict:6/6(ro)(G)--   obj
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1119/1686(ro)(G)--   --dict:0/20(G)--   --dict:107/200(L)--   --dict:107/200(L)--   --dict:104/127(ro)(G)--   --dict:241/347(ro)(G)--   --dict:18/24(L)--
Current allocation mode is local
ESP Ghostscript 815.02: Unrecoverable error, exit code 1

A few google-searches later I realized that ghostscript 8.15 is “old school” and needed a serious update. I always like to have the latest software (generally speaking) so I was after the latest version to date (version 8.63) to hopefully solve some problems with PDF translation:

First, you’ll need the jasper libraries which are not available via yum. You can get them here (i386 32bit only for now):

 
rpm -Uvh http://chrisschuld.com/centos52/jasper-libs-1.900.1-8.i386.rpm
rpm -Uvh http://chrisschuld.com/centos52/jasper-1.900.1-8.i386.rpm
rpm -Uvh http://chrisschuld.com/centos52/jasper-utils-1.900.1-8.i386.rpm
rpm -Uvh http://chrisschuld.com/centos52/jasper-devel-1.900.1-8.i386.rpm

Next, here are the RPMs for RHEL5/CentOS5.2 for Ghostscript (i386 32bit only for now):

 
rpm -Uvh http://chrisschuld.com/centos52/ghostscript-8.63-1.i386.rpm
rpm -Uvh http://chrisschuld.com/centos52/ghostscript-devel-8.63-1.i386.rpm
rpm -Uvh http://chrisschuld.com/centos52/ghostscript-gtk-8.63-1.i386.rpm

*** Problem solved!

4 Comments so far »

  1. Building an IAXModem-based HylaFax+ server using OpenVZ | Chris Schuld's Blog said

    November 12 2008 @ 3:04 pm

    [...] we start the update and install process via yum and a few RPMs I built for Ghostscript: yum -y update yum -y install rpm-build make libtiff-devel zlib-devel gcc gcc-c++ pam-devel [...]

  2. Lorenzo said

    December 22 2008 @ 11:29 am

    Hello,
    i have the problem when i try to install the ghostscript:

    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-8.63-1.i386.rpm
    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-devel-8.63-1.i386.rpm
    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-gtk-8.63-1.i386.rpm

    Cannot start the installation, i have alredy installed GhostScript 8.15, i must clean the installation?
    Awaiting your reply.
    Best regards

  3. Chris Schuld said

    December 22 2008 @ 12:06 pm

    @Lorenzo:

    Try removing the installation you have of GS8.15 then attempt to install 8.63:

    rpm -e ghostscript

    then

    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-8.63-1.i386.rpm
    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-devel-8.63-1.i386.rpm
    rpm -Uvh http://chrisschuld.com/centos52/ghostscript-gtk-8.63-1.i386.rpm

  4. Lorenzo said

    December 24 2008 @ 7:29 am

    Solved.
    Thanks.

Comment RSS · TrackBack URI

Leave a comment

Name: (Required)

Email: (Required)

Website:

Comment: