1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gs-download-http "&sourceforge-repo;/ghostscript/ghostscript-&gs-version;.tar.bz2">
|
---|
8 | <!ENTITY gs-download-ftp "ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs870/ghostscript-&gs-version;.tar.bz2">
|
---|
9 | <!ENTITY gs-md5sum "526366f8cb4fda0d3d293597cc5b984b">
|
---|
10 | <!ENTITY gs-size "17 MB">
|
---|
11 | <!ENTITY gs-buildsize "232 MB (includes installing libgs.so and both font tarballs)">
|
---|
12 | <!ENTITY gs-time "3.2 SBU (includes building and installing libgs.so)">
|
---|
13 |
|
---|
14 | <!ENTITY gs-standard-fonts-download "ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/ghostscript-fonts-std-8.11.tar.gz">
|
---|
15 | <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
|
---|
16 | <!ENTITY gs-standard-fonts-size "3.6 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 "778 KB">
|
---|
21 | ]>
|
---|
22 |
|
---|
23 | <sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
|
---|
24 | <?dbhtml filename="gs.html"?>
|
---|
25 |
|
---|
26 | <sect1info>
|
---|
27 | <othername>$LastChangedBy$</othername>
|
---|
28 | <date>$Date$</date>
|
---|
29 | </sect1info>
|
---|
30 |
|
---|
31 | <title>GPL Ghostscript-&gs-version;</title>
|
---|
32 |
|
---|
33 | <indexterm zone="gs">
|
---|
34 | <primary sortas="a-GPL-Ghostscript">GPL 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 | &lfs65_checked;
|
---|
45 |
|
---|
46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
47 | <itemizedlist spacing="compact">
|
---|
48 | <listitem>
|
---|
49 | <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>Download MD5 sum: &gs-md5sum;</para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>Download size: &gs-size;</para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>Estimated disk space required: &gs-buildsize;</para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>Estimated build time: &gs-time;</para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
69 |
|
---|
70 | <itemizedlist spacing='compact'>
|
---|
71 | <title>Standard Fonts</title>
|
---|
72 | <listitem>
|
---|
73 | <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
|
---|
77 | </listitem>
|
---|
78 | <listitem>
|
---|
79 | <para>Download size: &gs-standard-fonts-size;</para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <itemizedlist spacing='compact'>
|
---|
84 | <title>Other Fonts</title>
|
---|
85 | <listitem>
|
---|
86 | <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
|
---|
87 | </listitem>
|
---|
88 | <listitem>
|
---|
89 | <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
|
---|
90 | </listitem>
|
---|
91 | <listitem>
|
---|
92 | <para>Download size: &gs-other-fonts-size;</para>
|
---|
93 | </listitem>
|
---|
94 | </itemizedlist>
|
---|
95 |
|
---|
96 | <itemizedlist spacing="compact">
|
---|
97 | <title>Patches</title>
|
---|
98 | <listitem>
|
---|
99 | <para>Optional patch: <ulink
|
---|
100 | url="&patch-root;/ghostscript-&gs-version;-system_jasper-1.patch"/>
|
---|
101 | </para>
|
---|
102 | </listitem>
|
---|
103 | </itemizedlist>
|
---|
104 |
|
---|
105 | <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
108 | <para role="optional"><xref linkend="libjpeg"/>,
|
---|
109 | <xref linkend="libpng"/>,
|
---|
110 | <xref linkend="jasper"/>,
|
---|
111 | <xref linkend="gtk2"/>, and
|
---|
112 | <xref linkend="x-window-system"/></para>
|
---|
113 |
|
---|
114 | <para condition="html" role="usernotes">User Notes:
|
---|
115 | <ulink url="&blfs-wiki;/gs"/></para>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="installation">
|
---|
120 | <title>Installation of Ghostscript</title>
|
---|
121 |
|
---|
122 | <para>If you have <application>JasPer</application> installed on your system
|
---|
123 | and you would like to use it with <application>GPL Ghostscript</application>,
|
---|
124 | first remove the local copy and apply a patch:</para>
|
---|
125 |
|
---|
126 | <screen><userinput>rm -rf jasper &&
|
---|
127 | patch -Np1 -i ../ghostscript-&gs-version;-system_jasper-1.patch</userinput></screen>
|
---|
128 |
|
---|
129 | <para>Install <application>GPL Ghostscript</application> by running the
|
---|
130 | following commands:</para>
|
---|
131 |
|
---|
132 | <screen><userinput>./configure --prefix=/usr &&
|
---|
133 | make</userinput></screen>
|
---|
134 |
|
---|
135 | <para>This package does not come with a test suite. However, you may test
|
---|
136 | the operation of the newly built <command>gs</command> program by
|
---|
137 | issuing the following command (issue from an X Windows terminal):</para>
|
---|
138 |
|
---|
139 | <screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
|
---|
140 |
|
---|
141 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
142 |
|
---|
143 | <screen role="root"><userinput>make install &&
|
---|
144 | ln -sv /usr/share/ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
|
---|
145 |
|
---|
146 | <para>To install the shared library
|
---|
147 | <filename class='libraryfile'>libgs.so</filename>, run the
|
---|
148 | following additional command as an unprivileged user:</para>
|
---|
149 |
|
---|
150 | <screen><userinput>make so</userinput></screen>
|
---|
151 |
|
---|
152 | <para>And again, as the <systemitem class="username">root</systemitem>
|
---|
153 | user:</para>
|
---|
154 |
|
---|
155 | <screen role="root"><userinput>make soinstall &&
|
---|
156 | install -v -m644 base/*.h /usr/include/ghostscript &&
|
---|
157 | ln -v -s ghostscript /usr/include/ps</userinput></screen>
|
---|
158 |
|
---|
159 | <note>
|
---|
160 | <para>The shared library depends on <xref linkend="gtk2"/>. It is
|
---|
161 | only used in external programs like <xref linkend="gsview"/> and
|
---|
162 | <xref linkend="imagemagick"/>.</para>
|
---|
163 | </note>
|
---|
164 |
|
---|
165 | <para>To finish the installation, unpack all fonts you've downloaded to
|
---|
166 | <filename class="directory">/usr/share/ghostscript</filename> and ensure
|
---|
167 | the ownerships of the files are root:root. Substitute
|
---|
168 | <replaceable><font-tarball></replaceable> appropriately in
|
---|
169 | the command below for the fonts you wish to install:</para>
|
---|
170 |
|
---|
171 | <screen role="root"><userinput>tar -xvf ../<replaceable><font-tarball></replaceable> -C /usr/share/ghostscript &&
|
---|
172 | chown -v -R root:root /usr/share/ghostscript/fonts</userinput></screen>
|
---|
173 |
|
---|
174 | </sect2>
|
---|
175 |
|
---|
176 | <sect2 role="commands">
|
---|
177 | <title>Command Explanations</title>
|
---|
178 |
|
---|
179 | <para><command>install ...</command>: Some packages
|
---|
180 | (<application>ImageMagick</application> is one) need the
|
---|
181 | <application>Ghostscript</application> interface headers in place to link
|
---|
182 | to the shared library. These commands install the headers.</para>
|
---|
183 |
|
---|
184 | <para><command>ln -sv ... /usr/share/doc/ghostscript-&gs-version;</command>: This puts
|
---|
185 | the documentation where it is expected to be found.</para>
|
---|
186 |
|
---|
187 | <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some
|
---|
188 | packages expect to find the interface headers in an alternate
|
---|
189 | location.</para>
|
---|
190 |
|
---|
191 | </sect2>
|
---|
192 |
|
---|
193 | <sect2 role="content">
|
---|
194 | <title>Contents</title>
|
---|
195 | <segmentedlist>
|
---|
196 | <segtitle>Installed Programs</segtitle>
|
---|
197 | <segtitle>Installed Library</segtitle>
|
---|
198 | <segtitle>Installed Directories</segtitle>
|
---|
199 |
|
---|
200 | <seglistitem>
|
---|
201 | <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
|
---|
202 | gsdj, gsdj500, gslj, gslp, gsnd, lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
|
---|
203 | pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
|
---|
204 | ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
|
---|
205 | wftopfa</seg>
|
---|
206 | <seg>libgs.so </seg>
|
---|
207 | <seg>/usr/include/ghostscript and /usr/share/ghostscript</seg>
|
---|
208 | </seglistitem>
|
---|
209 | </segmentedlist>
|
---|
210 |
|
---|
211 | <variablelist>
|
---|
212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
213 | <?dbfo list-presentation="list"?>
|
---|
214 | <?dbhtml list-presentation="table"?>
|
---|
215 |
|
---|
216 | <varlistentry id="gplgs-prog">
|
---|
217 | <term><command>gs</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable Document Format
|
---|
220 | (PDF).</para>
|
---|
221 | <indexterm zone="gs gplgs-prog">
|
---|
222 | <primary sortas="b-gs">gs</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 | <varlistentry id="libgs.so">
|
---|
228 | <term><filename class="libraryfile">libgs.so</filename></term>
|
---|
229 | <listitem>
|
---|
230 | <para>provides <application>Ghostscript</application> functionality
|
---|
231 | to other programs, such as <application>GSView</application>,
|
---|
232 | <application>ImageMagick</application>, and
|
---|
233 | <application>libspectre</application>.</para>
|
---|
234 | <indexterm zone="gs libgs.so">
|
---|
235 | <primary sortas="c-libgs.so">libgs.so</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | </variablelist>
|
---|
241 |
|
---|
242 | <para><application>GPL Ghostscript</application> provides many different
|
---|
243 | scripts used to convert PostScript, PDF, and other formats. Please refer to
|
---|
244 | the HTML documentation or the man pages for information about the
|
---|
245 | capabilities provided.</para>
|
---|
246 |
|
---|
247 | </sect2>
|
---|
248 |
|
---|
249 | </sect1>
|
---|