Activities

February 2010
M T W T F S S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728

How do I upgrade the ghostscripts version on my Redhat server ?

our requirement is, I have a pdf file which is created using doc conversion ( have a look at my previous post). While I converting it to jpg it’s showing the errors as follows,

xecution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1147/1684(ro)(G)--   --dict:0/20(G)--   --dict:71/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.63: Unrecoverable error, exit code 1

After googling, I found upgrading of ghostscripts will solve my problem. And I had success on upgrading ghostscripts on local desktop but not on server 🙁

I found the same technique will not work for me since imagemagic is bind with ghoscripts. Suppose whenever I try to install imagemagic it will either install ghostscripts along with it or terminate with the error with lasted ghostscripts package conficts that were installed manually before.
My solution is,
1. First remove the Imagemagic and ghostscripts from the server.
2. Then I did jasper installation and then installed the ghostscript latest rpm.
3. After I installed Imagemagick separately from the Centos latest package repository.

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

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

Then download the imagemagic rpm from here,
http://mirror.vpshosting.com.hk/pub/linux/centos/5.4/os/i386/CentOS/ You may found various youm repository list from Centos download urls. Just go through the parent url to reach rpm distribution.

After that I can convert .pdf to image easily.

# convert test.pdf test.jpg

1 comment to How do I upgrade the ghostscripts version on my Redhat server ?

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>