February 2010
« Jan   Mar »

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
rpm -Uvh
rpm -Uvh
rpm -Uvh

rpm -Uvh
rpm -Uvh
rpm -Uvh

Then download the imagemagic rpm from here, 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>