Wednesday, 10 April 2013
Upgrade Ghostscript and Imagemagick on a Centos server
The following script can be used to remove a previous instance of Ghostscript and Imagemagick from a Centos based server and re-install the current versions.
A manual upgrade is required as the Centos repo does not currently have Ghostscript v9 (which is required to use the inkcov device example here).
#!/bin/bash
yum remove imagemagick -y
yum remove ghostscript -y
cd /tmp
wget http://downloads.ghostscript.com/public/ghostscript-9.07.tar.gz
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar xf ghostscript-9.07.tar.gz
tar xf ImageMagick.tar.gz
cd /tmp/ghostscript-9.07
autoconf
./configure
make
make install
cd /tmp/ImageMagick
autoconf
./configure --enable-shared \
--with-modules \
--with-perl \
--with-x \
--with-threads \
--with-magick_plus_plus \
--with-gslib \
--with-wmf \
--with-lcms \
--with-rsvg \
--with-xml \
--without-dps
make
sudo make install
sudo ldconfig /usr/local/lib
cd /
rm -Rf /tmp/ghostscript-9.07
rm -Rf /tmp/ImageMagick
echo "Done!"
Labels:
centos,
ghostscript,
imagemagick,
pdf
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment