Updating Ghostscript on CentOS 5.4 (ghostscript 8.70) (the remix)
A 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 “you don’t know what your talking about!” I thought I would update the original post to include the latest release of ghostscript (8.7) as well as answer and respond to the best question / statement in the comments… “how do you do that and can you post the SRPMS?” The answer is, yes, here is how I do it and “yes” I’ll post the SRPMs (or more appropriately where I get them).
First, you have to have the latest version of the build environment as well as some prerequisites for building GhostScript:
yum --enablerepo remi groupinstall "Development Tools" yum --enablerepo remi install libjpeg-devel libXt-devel libpng-devel gtk2-devel glib2-devel gnutls-devel libxml2-devel libtiff-devel cups-devel libtool jasper-devel
(you will note here I use the REMI repo)
Next, I obtain the SRPM files from rpmfind.net and ghostscript-fonts from the centos repo:
wget ftp://195.220.108.108/linux/fedora/development/source/SRPMS/ghostscript-8.70-3.fc13.src.rpm wget http://mirror.centos.org/centos/5.4/os/SRPMS/ghostscript-fonts-5.50-13.1.1.src.rpm
Now, I build them using RPM (rpmbuild):
rpmbuild --rebuild ghostscript-8.70-3.fc13.src.rpm rpmbuild --rebuild ghostscript-8.70-1.fc10.src.rpm
… and that is how I do it! If you are feeling exceptionally lazy and have some inherent trust for my builds in x86_64… here they are:
rpm -Uvh http://chrisschuld.com/centos54/ghostscript-8.70-1.x86_64.rpm http://chrisschuld.com/centos54/ghostscript-fonts-5.50-13.1.1.noarch.rpm http://chrisschuld.com/centos54/ghostscript-gtk-8.70-1.x86_64.rpm
























Updating Ghostscript on CentOS 5.2 (ghostscript 8.63) | Chris Schuld's Blog said
January 4 2010 @ 11:28 pm
[...] PLEASE NOTE: I have posted an update for CentOS5.4 and GhostScript 8.70! [...]
Ryan Grow said
February 1 2010 @ 10:48 am
Hi,
Thanks for your post. I’m trying to upgrade ghostscript because it fails on some of our pdf files. However, when I try this command:
sudo rpmbuild –rebuild ghostscript-8.70-6.fc13.src.rpm
I get the following errors, do you have any ideas? Thanks!
Installing ghostscript-8.70-6.fc13.src.rpm
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/CIDFnmap;4b60a5ab: cpio: MD5 sum mismatch
error: ghostscript-8.70-6.fc13.src.rpm cannot be installed
Craig Fairhurst said
February 4 2010 @ 9:34 am
Thanks so much for this.
I had to search around the French Repo “Remi” for this page, others may find it useful to go straight here: http://blog.famillecollet.com/pages/Config-en
Installing now. Thanks!
Anonymous Helper said
February 11 2010 @ 1:31 pm
Ryan, the reason you couldn’t rebuild the RPM is that Fedora 11 and 12 have moved on to a newer hash library in RPM, and no longer use MD5 checksums.
Here’s what I did on my system:
1) Downloaded the latest ghostscript SRPM from Fedora development (rawhide)
2) run “rpm2cpio ghostscript-8.70-2.fc13.src.rpm | cpio -dimv” to extract the files from the SRPM
3) Put all the resulting files in ~/rpmbuild/SOURCES, except for ghostscript.spec, which goes in ~/rpmbuild/SPECS. (You’re not building RPMs are root, are you? If so, you should go read up on how to build RPMs safely.)
4) Go the SPECS directory, and run “rpmbuild -ba ghostscript.spec”
5) Find the SRPM and RPMs in ~/rpmbuild/RPMS
6) Enjoy!
Craig Fairhurst said
February 13 2010 @ 5:35 pm
Had to use these RPM’s again and struggled with the notes I’d made.
The remi repo isn’t serving “jasper-devel” any more.
My solution was:
$ yum install freeglut
$ rpm -Uvh ftp://ftp.pbone.net/mirror/www.sourcemirrors.org/scotth/centos/5/x86_64/jasper-1.900.1-2.el5.x86_64.rpm
Then the x64 RPM’s installed fine.
Thanks again.
Anonymous Helper 2 said
February 26 2010 @ 10:24 am
I also needed to install the urw-fonts package from Fedora (urw-fonts-2.4-9.fc13.src.rpm) to fix missing NimbusSanL-Regu errors (the previous urw-fonts package has the name NimbusSansL-Regu for the font).