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