Installation of Ghostscript
If you have JasPer installed on
your system and you would like to use it with GPL Ghostscript, first remove the local copy
and apply a patch:
rm -rf jasper &&
patch -Np1 -i ../ghostscript-8.70-system_jasper-1.patch
Install GPL Ghostscript by running
the following commands:
./configure --prefix=/usr &&
make
This package does not come with a test suite. However, you may test
the operation of the newly built gs program by issuing the
following command (issue from an X Windows terminal):
bin/gs -Ilib -dBATCH examples/tiger.eps
Now, as the root user:
make install &&
ln -sv /usr/share/ghostscript/8.70/doc /usr/share/doc/ghostscript-8.70
To install the shared library libgs.so, run the following additional command as
an unprivileged user:
make so
And again, as the root user:
make soinstall &&
install -v -m644 base/*.h /usr/include/ghostscript &&
ln -v -s ghostscript /usr/include/ps
To finish the installation, unpack all fonts you've downloaded to
/usr/share/ghostscript and ensure the
ownerships of the files are root:root. Substitute <font-tarball> appropriately
in the command below for the fonts you wish to install:
tar -xvf ../<font-tarball> -C /usr/share/ghostscript &&
chown -v -R root:root /usr/share/ghostscript/fonts
Command Explanations
install ...: Some
packages (ImageMagick is one) need
the Ghostscript interface headers
in place to link to the shared library. These commands install the
headers.
ln -sv ...
/usr/share/doc/ghostscript-8.70: This puts the
documentation where it is expected to be found.
ln -v -s ghostscript
/usr/include/ps: Some packages expect to find the
interface headers in an alternate location.
Contents
Installed Programs:
bdftops, dumphint, dvipdf, eps2eps,
fixmswrd.pl, font2c, gs, gsbj, gsdj, gsdj500, gslj, gslp, gsnd,
lprsetup.sh, pdf2dsc, pdf2ps, pdfopt, pf2afm, pfbtopfa,
printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12, ps2pdf13,
ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
wftopfa
Installed Library:
libgs.so
Installed Directories:
/usr/include/ghostscript and
/usr/share/ghostscript
Short Descriptions
|
gs
|
is an interpreter for Adobe Systems' PostScript(tm) and
Portable Document Format (PDF).
|
|
libgs.so
|
provides Ghostscript
functionality to other programs, such as GSView, ImageMagick, and libspectre.
|
GPL Ghostscript provides many
different scripts used to convert PostScript, PDF, and other
formats. Please refer to the HTML documentation or the man pages
for information about the capabilities provided.