2005-05-16 18:48:16 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 11:45:00 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2005-02-15 23:01:36 +08:00
|
|
|
|
2008-10-13 22:49:44 +08:00
|
|
|
<!ENTITY gs-download-http "&sourceforge-repo;/ghostscript/ghostscript-&gs-version;.tar.bz2">
|
2009-08-01 23:43:34 +08:00
|
|
|
<!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs864/ghostscript-&gs-version;.tar.bz2">
|
|
|
|
<!ENTITY gs-md5sum "b13289cb2115f38f40c5e064f87e228a">
|
|
|
|
<!ENTITY gs-size "17 MB">
|
|
|
|
<!ENTITY gs-buildsize "232 MB (includes installing libgs.so and both font tarballs)">
|
|
|
|
<!ENTITY gs-time "3.2 SBU (includes building and installing libgs.so)">
|
2005-02-15 23:01:36 +08:00
|
|
|
|
2008-08-12 00:25:22 +08:00
|
|
|
<!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz">
|
2005-02-15 23:01:36 +08:00
|
|
|
<!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
2009-08-01 23:43:34 +08:00
|
|
|
<!ENTITY gs-standard-fonts-size "3.6 MB">
|
2005-02-15 23:01:36 +08:00
|
|
|
|
|
|
|
<!ENTITY gs-other-fonts-download "http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz">
|
|
|
|
<!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
2009-08-01 23:43:34 +08:00
|
|
|
<!ENTITY gs-other-fonts-size "778 KB">
|
2004-06-14 11:45:00 +08:00
|
|
|
]>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
|
2005-05-16 18:48:16 +08:00
|
|
|
<?dbhtml filename="gs.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<title>GPL Ghostscript-&gs-version;</title>
|
2005-05-16 18:48:16 +08:00
|
|
|
|
|
|
|
<indexterm zone="gs">
|
2009-08-01 23:43:34 +08:00
|
|
|
<primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
|
2005-05-16 18:48:16 +08:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Ghostscript</title>
|
|
|
|
|
|
|
|
<para><application>Ghostscript</application> is a versatile processor
|
|
|
|
for PostScript data with the ability to render PostScript to different
|
|
|
|
targets.</para>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
&lfs65_checked;
|
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &gs-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &gs-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &gs-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &gs-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Standard Fonts</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &gs-standard-fonts-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<title>Other Fonts</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &gs-other-fonts-size;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<title>Patches</title>
|
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
|
|
|
url="&patch-root;/ghostscript-&gs-version;-security_fixes-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Optional patch: <ulink
|
|
|
|
url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-16 22:13:42 +08:00
|
|
|
<bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
2005-05-16 18:48:16 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2005-12-08 03:52:35 +08:00
|
|
|
<para role="optional"><xref linkend="libjpeg"/>,
|
2005-05-16 18:48:16 +08:00
|
|
|
<xref linkend="libpng"/>,
|
2009-08-01 23:43:34 +08:00
|
|
|
<xref linkend="jasper"/>,
|
|
|
|
<xref linkend="gtk2"/>, and
|
2006-04-10 00:06:53 +08:00
|
|
|
<xref linkend="x-window-system"/></para>
|
2005-05-16 18:48:16 +08:00
|
|
|
|
2006-04-11 02:38:41 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/gs"/></para>
|
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Ghostscript</title>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<para>If you have <application>JasPer</application> installed on your system
|
|
|
|
and you would like to use it with <application>GPL Ghostscript</application>,
|
|
|
|
then we must first remove the local copy and apply a patch:</para>
|
|
|
|
|
|
|
|
<screen><userinput>rm -rf jasper &&
|
2009-08-02 01:56:37 +08:00
|
|
|
patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch
|
2009-08-01 23:43:34 +08:00
|
|
|
</userinput></screen>
|
|
|
|
|
|
|
|
<para>Install <application>GPL Ghostscript</application> by running the
|
2005-05-16 18:48:16 +08:00
|
|
|
following commands:</para>
|
|
|
|
|
2009-08-02 01:56:37 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../ghostscript-&gs-version;-security_fixes-1.patch &&
|
2009-08-01 23:43:34 +08:00
|
|
|
./configure --prefix=/usr &&
|
2005-06-18 22:54:57 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
<para>To install the shared library
|
|
|
|
<filename class='libraryfile'>libgs.so</filename>, run the
|
2005-06-23 22:07:56 +08:00
|
|
|
following additional command as an unprivileged user:</para>
|
2005-06-18 22:54:57 +08:00
|
|
|
|
|
|
|
<screen><userinput>make so</userinput></screen>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-06-23 22:07:56 +08:00
|
|
|
<para>And again, as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
2005-06-18 22:54:57 +08:00
|
|
|
|
|
|
|
<screen role="root"><userinput>make soinstall &&
|
2009-08-01 23:43:34 +08:00
|
|
|
install -v -m644 base/*.h /usr/include/ghostscript &&
|
|
|
|
ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
<note>
|
2009-08-01 23:43:34 +08:00
|
|
|
<para>The shared library depends on <xref linkend="gtk2"/>. It is
|
2005-09-18 05:12:28 +08:00
|
|
|
only used in external programs like <xref linkend="gsview"/> and
|
|
|
|
<xref linkend="imagemagick"/>.</para>
|
2005-05-16 18:48:16 +08:00
|
|
|
</note>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
<para>To finish the installation, unpack all fonts you've downloaded to
|
2005-06-18 22:54:57 +08:00
|
|
|
<filename class="directory">/usr/share/ghostscript</filename> and ensure
|
|
|
|
the ownerships of the files are root:root. Substitute
|
2006-04-11 02:38:41 +08:00
|
|
|
<replaceable><font-tarball></replaceable> appropriately in
|
2005-06-18 22:54:57 +08:00
|
|
|
the command below for the fonts you wish to install:</para>
|
|
|
|
|
2006-04-11 02:38:41 +08:00
|
|
|
<screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript &&
|
2005-06-18 22:54:57 +08:00
|
|
|
chown -v -R root:root /usr/share/ghostscript/fonts</userinput></screen>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
</sect2>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-09-18 05:12:28 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><command>install ...</command>: Some packages
|
|
|
|
(<application>ImageMagick</application> is one) need the
|
|
|
|
<application>Ghostscript</application> interface headers in place to link
|
|
|
|
to the shared library. These commands install the headers.</para>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
|
2005-09-18 05:12:28 +08:00
|
|
|
packages expect to find the interface headers in an alternate
|
|
|
|
location.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
2005-06-18 22:54:57 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
2009-08-01 23:43:34 +08:00
|
|
|
<seg>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
|
2005-06-18 22:54:57 +08:00
|
|
|
wftopfa</seg>
|
|
|
|
<seg>libgs.so </seg>
|
2009-08-01 23:43:34 +08:00
|
|
|
<seg>/usr/include/ghostscript and /usr/share/ghostscript</seg>
|
2005-06-18 22:54:57 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="afplgs-prog-gs">
|
|
|
|
<term><command>gs</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>invokes <application>Ghostscript</application>, an interpreter
|
|
|
|
of Adobe Systems' PostScript(tm) and Portable Document Format
|
|
|
|
(PDF) languages.</para>
|
|
|
|
<indexterm zone="gs afplgs-prog-gs">
|
|
|
|
<primary sortas="b-gs">gs</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
2009-08-01 23:43:34 +08:00
|
|
|
<para><application>GPL Ghostscript</application> provides many different
|
2005-06-18 22:54:57 +08:00
|
|
|
scripts used to render PostScript/PDF files back and forth. Please refer
|
|
|
|
to the HTML documentation or try <command>man gs</command> for information
|
|
|
|
about the capabilities provided by the package.</para>
|
2004-06-14 11:45:00 +08:00
|
|
|
|
2005-05-16 18:48:16 +08:00
|
|
|
</sect2>
|
2003-01-01 05:34:55 +08:00
|
|
|
|
|
|
|
</sect1>
|