[ed30f09] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[73ddd1a0] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[00b6675] | 6 |
|
---|
[15b3bc29] | 7 | <!ENTITY gs-download-http "http://downloads.sourceforge.net/ghostscript/ghostscript-&gs-version;.tar.bz2">
|
---|
[038ea6ba] | 8 | <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/AFPL/gs851/ghostscript-&gs-version;.tar.bz2">
|
---|
[b055074b] | 9 | <!ENTITY gs-md5sum "e65e0c40213a616174572faa639e04d6">
|
---|
| 10 | <!ENTITY gs-size "9.3 MB">
|
---|
| 11 | <!ENTITY gs-buildsize "104 MB (includes installing libgs.so and both font tarballs)">
|
---|
| 12 | <!ENTITY gs-time "2.4 SBU (includes building and installing libgs.so)">
|
---|
[00b6675] | 13 |
|
---|
| 14 | <!ENTITY gs-standard-fonts-download "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/fonts/ghostscript-fonts-std-8.11.tar.gz">
|
---|
| 15 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
| 16 | <!ENTITY gs-standard-fonts-size "3.7 MB">
|
---|
| 17 |
|
---|
| 18 | <!ENTITY gs-other-fonts-download "http://ftp.gnu.org/pub/gnu/ghostscript/gnu-gs-fonts-other-6.0.tar.gz">
|
---|
| 19 | <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
|
---|
| 20 | <!ENTITY gs-other-fonts-size "796 KB">
|
---|
[73ddd1a0] | 21 | ]>
|
---|
| 22 |
|
---|
[64a25d5] | 23 | <sect1 id="gs" xreflabel="AFPL Ghostscript-&gs-version;">
|
---|
[ed30f09] | 24 | <?dbhtml filename="gs.html"?>
|
---|
| 25 |
|
---|
| 26 | <sect1info>
|
---|
| 27 | <othername>$LastChangedBy$</othername>
|
---|
| 28 | <date>$Date$</date>
|
---|
| 29 | </sect1info>
|
---|
| 30 |
|
---|
| 31 | <title>AFPL Ghostscript-&gs-version;</title>
|
---|
| 32 |
|
---|
| 33 | <indexterm zone="gs">
|
---|
| 34 | <primary sortas="a-AFPL-Ghostscript">AFPL Ghostscript</primary>
|
---|
| 35 | </indexterm>
|
---|
| 36 |
|
---|
| 37 | <sect2 role="package">
|
---|
| 38 | <title>Introduction to Ghostscript</title>
|
---|
| 39 |
|
---|
| 40 | <para><application>Ghostscript</application> is a versatile processor
|
---|
| 41 | for PostScript data with the ability to render PostScript to different
|
---|
| 42 | targets.</para>
|
---|
| 43 |
|
---|
| 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download size: &gs-size;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Estimated build time: &gs-time;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | </itemizedlist>
|
---|
| 65 |
|
---|
| 66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 67 |
|
---|
| 68 | <itemizedlist spacing='compact'>
|
---|
| 69 | <title>Standard Fonts</title>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | </itemizedlist>
|
---|
| 80 |
|
---|
| 81 | <itemizedlist spacing='compact'>
|
---|
| 82 | <title>Other Fonts</title>
|
---|
| 83 | <listitem>
|
---|
| 84 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
| 85 | </listitem>
|
---|
| 86 | <listitem>
|
---|
| 87 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
| 88 | </listitem>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
| 91 | </listitem>
|
---|
| 92 | </itemizedlist>
|
---|
| 93 |
|
---|
[b29ed97c] | 94 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
[ed30f09] | 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[d352a28] | 97 | <para role="optional"><xref linkend="libjpeg"/>,
|
---|
[ed30f09] | 98 | <xref linkend="libpng"/>,
|
---|
[e77976f] | 99 | <xref linkend="GTK"/>, and
|
---|
| 100 | <xref linkend="x-window-system"/></para>
|
---|
[ed30f09] | 101 |
|
---|
| 102 | <bridgehead renderas="sect3">Conflicts</bridgehead>
|
---|
| 103 | <para>This version of Ghostscript does not work with
|
---|
| 104 | <application>CUPS</application> due to missing generic "cups" raster
|
---|
| 105 | image driver. The necessary support cannot be patched in due to
|
---|
| 106 | incompatible licenses. Use <xref linkend="espgs"/> instead if you have
|
---|
| 107 | <application>CUPS</application>.</para>
|
---|
| 108 |
|
---|
[977061b0] | 109 | <para condition="html" role="usernotes">User Notes:
|
---|
| 110 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
| 111 |
|
---|
[ed30f09] | 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2 role="installation">
|
---|
| 115 | <title>Installation of Ghostscript</title>
|
---|
| 116 |
|
---|
| 117 | <para>Install <application>Ghostscript</application> by running the
|
---|
| 118 | following commands:</para>
|
---|
| 119 |
|
---|
| 120 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[038ea6ba] | 121 | make</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | <para>This package does not come with a test suite.</para>
|
---|
| 124 |
|
---|
| 125 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 126 |
|
---|
| 127 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[73ddd1a0] | 128 |
|
---|
[ed30f09] | 129 | <para>To install the shared library
|
---|
| 130 | <filename class='libraryfile'>libgs.so</filename>, run the
|
---|
[e615d9b] | 131 | following additional command as an unprivileged user:</para>
|
---|
[038ea6ba] | 132 |
|
---|
| 133 | <screen><userinput>make so</userinput></screen>
|
---|
[73ddd1a0] | 134 |
|
---|
[e615d9b] | 135 | <para>And again, as the <systemitem class="username">root</systemitem>
|
---|
| 136 | user:</para>
|
---|
[038ea6ba] | 137 |
|
---|
| 138 | <screen role="root"><userinput>make soinstall &&
|
---|
| 139 | install -v -d -m755 /usr/include/ps &&
|
---|
[2ddf71a5] | 140 | install -v -m644 src/*.h /usr/include/ps &&
|
---|
| 141 | ln -v -s ps /usr/include/ghostscript</userinput></screen>
|
---|
[73ddd1a0] | 142 |
|
---|
[ed30f09] | 143 | <note>
|
---|
| 144 | <para>The shared library depends on <xref linkend="GTK"/>. It is
|
---|
[2ddf71a5] | 145 | only used in external programs like <xref linkend="gsview"/> and
|
---|
| 146 | <xref linkend="imagemagick"/>.</para>
|
---|
[ed30f09] | 147 | </note>
|
---|
[73ddd1a0] | 148 |
|
---|
[ed30f09] | 149 | <para>To finish the installation, unpack all fonts you've downloaded to
|
---|
[038ea6ba] | 150 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
| 151 | the ownerships of the files are root:root. Substitute
|
---|
[977061b0] | 152 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
[038ea6ba] | 153 | the command below for the fonts you wish to install:</para>
|
---|
| 154 |
|
---|
[977061b0] | 155 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript &&
|
---|
[038ea6ba] | 156 | chown -v -R root:root /usr/share/ghostscript/fonts</userinput></screen>
|
---|
[73ddd1a0] | 157 |
|
---|
[ed30f09] | 158 | </sect2>
|
---|
[73ddd1a0] | 159 |
|
---|
[2ddf71a5] | 160 | <sect2 role="commands">
|
---|
| 161 | <title>Command Explanations</title>
|
---|
| 162 |
|
---|
| 163 | <para><command>install ...</command>: Some packages
|
---|
| 164 | (<application>ImageMagick</application> is one) need the
|
---|
| 165 | <application>Ghostscript</application> interface headers in place to link
|
---|
| 166 | to the shared library. These commands install the headers.</para>
|
---|
| 167 |
|
---|
| 168 | <para><command>ln -v -s ps /usr/include/ghostscript</command>: Some
|
---|
| 169 | packages expect to find the interface headers in an alternate
|
---|
| 170 | location.</para>
|
---|
| 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
[ed30f09] | 174 | <sect2 role="content">
|
---|
| 175 | <title>Contents</title>
|
---|
[038ea6ba] | 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Programs</segtitle>
|
---|
| 178 | <segtitle>Installed Library</segtitle>
|
---|
| 179 | <segtitle>Installed Directories</segtitle>
|
---|
| 180 |
|
---|
| 181 | <seglistitem>
|
---|
| 182 | <seg>bdftops, dumphint, ddvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
| 183 | gsc, gsdj, gsdj500, gslj, gslp, gsnd, gsx, lprsetup.sh, pdf2dsc, pdf2ps,
|
---|
| 184 | pdfopt, pf2afm, pfbtopfa, pj-gs.sh, printafm, ps2ascii, ps2epsi, ps2pdf,
|
---|
| 185 | ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, pv.sh, unix-lpr.sh, and
|
---|
| 186 | wftopfa</seg>
|
---|
| 187 | <seg>libgs.so </seg>
|
---|
| 188 | <seg>/usr/include/ps and /usr/share/ghostscript</seg>
|
---|
| 189 | </seglistitem>
|
---|
| 190 | </segmentedlist>
|
---|
| 191 |
|
---|
| 192 | <variablelist>
|
---|
| 193 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 194 | <?dbfo list-presentation="list"?>
|
---|
| 195 | <?dbhtml list-presentation="table"?>
|
---|
| 196 |
|
---|
| 197 | <varlistentry id="afplgs-prog-gs">
|
---|
| 198 | <term><command>gs</command></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>invokes <application>Ghostscript</application>, an interpreter
|
---|
| 201 | of Adobe Systems' PostScript(tm) and Portable Document Format
|
---|
| 202 | (PDF) languages.</para>
|
---|
| 203 | <indexterm zone="gs afplgs-prog-gs">
|
---|
| 204 | <primary sortas="b-gs">gs</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
| 209 | </variablelist>
|
---|
| 210 |
|
---|
| 211 | <para><application>AFPL Ghostscript</application> provides many different
|
---|
| 212 | scripts used to render PostScript/PDF files back and forth. Please refer
|
---|
| 213 | to the HTML documentation or try <command>man gs</command> for information
|
---|
| 214 | about the capabilities provided by the package.</para>
|
---|
[73ddd1a0] | 215 |
|
---|
[ed30f09] | 216 | </sect2>
|
---|
[cabb2de] | 217 |
|
---|
| 218 | </sect1>
|
---|