Hi how would I go about upgrading Ghostscript to the latest version on CentOS 6.5 64bit? Yum installs version 8.7, we're having an issue with gs processes not ending so I'm hoping an upgrade may sort it out. I have a basic understanding of Linux but I've never tried to replace/upgrade with something outside the main repo.
Just download the latest version from here and install it via source. To be safe you can yum remove the current version of Ghostscript so it doesn't have any issues with the new one. The instructions should be in the tar file but basically you are going to:
- tar xzf ghostscript-9.14.tar.gz
- cd ghostscript-9.14
- sudo make install
Some directions are a little different, so just make sure you read them.
The source installation of ghostscript seems the way to install version 9 on a CentOS 6.x system.
The answer of Eric is a correct answer, but you have to remove(override) the "orginal" ghostscript version, which is not always the way you want to do this.
In my case, I install extra version under their own directory and use it only when I have to. To do this, you make one change (use --prefix) in the way Eric does install from the source:
wget http://downloads.ghostscript.com/public/ghostscript-9.18.tar.gz tar xzf ghostscript-9.18.tar.gz cd ghostscript-9.18 ./configure --prefix=/usr/local/gs9 make sudo make install
Now you can call the new version with the command '/usr/local/gs9/bin/gs'. The OS-Version is still useable under /usr/bin/gs
In our case we use ghostscript "inside" ImageMagick and have to change the path/bindings in the /etc/ImageMagick/delegates.xml (or /usr/lib64/ImageMagick-6.2.8/config/delegates.xml) from gs to /usr/local/gs9/bin/gs.
Will remove just ghostscript
rpm -e --nodeps ghostscript-8.70-19.el6.x86_64
tells you what version you have
rpm -q ghostscript