Chris Schuld's Blog

personal musings on the composition of software

Written By: Chris Schuld Saturday, November 8th, 2008

PLEASE NOTE: I have posted an update for CentOS5.4 and GhostScript 8.70!

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!

PLEASE NOTE: I have posted an update for CentOS5.4 and GhostScript 8.70!

Categories: CentOS5, Linux, Web Development

13 Responses to " Updating Ghostscript on CentOS 5.2 (ghostscript 8.63) "

  1. Lorenzo says:

    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

  2. Lorenzo says:

    Solved.
    Thanks.

  3. Marcus says:

    Hi Chris,

    is there a possibility to get the x86_64 version of your ghostscript version? I tried to build for myself, but it failed everytime.

    Thanks.

    Marcus

  4. Ljubomir says:

    First, thanks for compiling this, I saved considerable time.

    Jasper is available via EPEL project repositories http://fedoraproject.org/wiki/EPEL, along with lot of other stuff.

    You might consider contributing ghostscript packages via their repository, it would be much easier for all CentOS community.

    Also, I have seen new 8.64 version is out, with some 100 bugs fixed and some improvements: http://www.ghostscript.com/GPL_Ghostscript_8.64.html. I hope you have some time to build that versions rpm’s.

  5. benjamin Indermühle says:

    It would be nice to have source rpms or at least the specfiles of your rpms.
    No offense but I have an issue with just using binaries from a source which I dont trust.
    Thanks Alot

  6. Mike says:

    Interesting, I’m in the same position. We have seen that 8.15 has issues with newer PDFs. I’ve run into a problem with your RPMs. I get complains on the ghostscript-fonts dependency:

    error: Failed dependencies:
    ghostscript-fonts is needed by ghostscript-8.63-1.i386

    The older 8.15 ghostscript-fonts from the repo doesn’t satisfy the dependency. I’m curious to know how you were able to install without fonts?

    Would you mind posting your spec files for your RPMs?

    Thanks!

  7. Tian says:

    Very useful. I just wonder why not replace the old 8.15 version with the newest one in CentOS 5.2.

  8. james says:

    You Rocks man ;)
    Thanks for sharing…

  9. Brian says:

    Thanks for the info and for hosting the files making installation a snap.

  10. Angus says:

    No need to remove ghostscript first.

    I just grabbed all the rpm’s (thanks Chris) using wget.

    put all the packages as args to rpm and it will handle the upgrade.

    rpm -Uvh ghostscript-8.63-1.i386.rpm centos52/ghostscript-devel-8.63-1.i386.rpm ghostscript-gtk-8.63-1.i386.rpm

    I presume you could skip the wget process and just give rpm a list of the http’s resources.

  1. [...] 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. [...] while back I wrote an article on updating to ghostscript 8.63 on CentOS 5.2. I received a fair amount of email and comments on the topic ranging from “thanks” to [...]

Leave a Reply

About Chris

Chris Schuld

Thank you for visiting my website. I use this site for a myriad of things: maintaining software I have open sourced, connecting with my readers and friends and documenting all of this little things "I wished I would have written down." You can read more about me or contact me.


thanks for visiting... happy coding

Recent Comments