source: pst/printing/gs.xml@ 51d044f

systemd-13485
Last change on this file since 51d044f was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.7 KB
Line 
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
8 "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
9 <!ENTITY gs-download-ftp " ">
10 <!ENTITY gs-md5sum "21732fd6e39acc283bc623b8842cbfbb">
11 <!ENTITY gs-size "28 MB">
12 <!ENTITY gs-buildsize
13 "170 MB (add 5 MB for fonts and 55 MB for libgs.so)">
14 <!ENTITY gs-time
15 "1 SBU (add 1 SBU for libgs.so)">
16
17 <!ENTITY gs-standard-fonts-download
18 "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
19 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
20 <!ENTITY gs-standard-fonts-size "3.7 MB">
21
22 <!ENTITY gs-other-fonts-download
23 "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
24 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
25 <!ENTITY gs-other-fonts-size "796 KB">
26]>
27
28<sect1 id="gs" xreflabel="ghostscript-&gs-version;">
29 <?dbhtml filename="gs.html"?>
30
31 <sect1info>
32 <othername>$LastChangedBy$</othername>
33 <date>$Date$</date>
34 </sect1info>
35
36 <title>ghostscript-&gs-version;</title>
37
38 <indexterm zone="gs">
39 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
40 </indexterm>
41
42 <sect2 role="package">
43 <title>Introduction to Ghostscript</title>
44
45 <para><application>Ghostscript</application> is a versatile processor
46 for PostScript data with the ability to render PostScript to different
47 targets. It used to be part of the cups printing stack, but is no longer
48 used for that.</para>
49
50 &lfs77_checked;
51
52 <bridgehead renderas="sect3">Package Information</bridgehead>
53 <itemizedlist spacing="compact">
54 <listitem>
55 <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
56 </listitem>
57 <listitem>
58 <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
59 </listitem>
60 <listitem>
61 <para>Download MD5 sum: &gs-md5sum;</para>
62 </listitem>
63 <listitem>
64 <para>Download size: &gs-size;</para>
65 </listitem>
66 <listitem>
67 <para>Estimated disk space required: &gs-buildsize;</para>
68 </listitem>
69 <listitem>
70 <para>Estimated build time: &gs-time;</para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
75
76 <para>If you wish, you can download additional fonts.</para>
77
78 <itemizedlist spacing="compact">
79 <title>Standard Fonts</title>
80 <listitem>
81 <para>Download (HTTP): <ulink url="&gs-standard-fonts-download;"/></para>
82 </listitem>
83 <listitem>
84 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
85 </listitem>
86 <listitem>
87 <para>Download size: &gs-standard-fonts-size;</para>
88 </listitem>
89 </itemizedlist>
90
91 <itemizedlist spacing="compact">
92 <title>Other Fonts</title>
93 <listitem>
94 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
95 </listitem>
96 <listitem>
97 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
98 </listitem>
99 <listitem>
100 <para>Download size: &gs-other-fonts-size;</para>
101 </listitem>
102 </itemizedlist>
103
104 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
105
106 <bridgehead renderas="sect4">Recommended</bridgehead>
107 <para role="recommended">
108 <xref linkend="freetype2"/>,
109 <xref linkend="libjpeg"/>,
110 <xref linkend="libpng"/>,
111 <xref linkend="libtiff"/>, and
112 <xref linkend="lcms2"/>
113 </para>
114
115 <bridgehead renderas="sect4">Optional</bridgehead>
116 <para role="optional">
117 <xref linkend="cairo"/>,
118 <xref linkend="cups"/>,
119 <xref linkend="fontconfig"/> (required, if you are installing any
120 suggested font),
121 <xref linkend="gtk2"/>,
122 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found),
123 <xref linkend="libidn"/>,
124 <xref linkend="libpaper"/>, and
125 <xref linkend="x-window-system"/>
126 </para>
127
128 <para condition="html" role="usernotes">
129 User Notes: <ulink url="&blfs-wiki;/gs"/>
130 </para>
131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of Ghostscript</title>
135
136 <note>
137 <para>
138 The <application>Ghostscript</application> build system is not
139 user-friendly. In order to use system copies of various graphics
140 libraries, you must do it using unconventional methods.
141 </para>
142 </note>
143
144 <para>
145 <application>GPL Ghostscript</application> includes (old) copies of
146 several libraries. Some of these seem to have been patched to fix known
147 vulnerabilities, but others of these copies are less-well maintained.
148 To ensure that any future fixes are applied throughout the whole system,
149 it is recommended that you first install the released versions of these
150 libraries and then configure <application>GPL Ghostscript</application>
151 to link to them.
152 </para>
153
154 <para>
155 If you have installed these dependencies on your system, remove the
156 copies of <application>expat</application>,
157 <application>freetype</application>, <application>lcms2</application>,
158 <application>libjpeg</application>, <application>libpng</application>
159 and <application>zlib</application>:
160 </para>
161
162<screen><userinput>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' configure.ac configure &amp;&amp;
163rm -rf expat freetype lcms2 jpeg libpng zlib</userinput></screen>
164<!--
165 <note>
166 <para>
167 If you have a multicore computer and try to run make with multiple
168 jobs (eg, make -j4) then the build may fail due to race conditions in
169 the <application>Ghostscript</application> build system. You can work
170 around that problem by simply running make again (eg,
171 <command>make -j4 || make -j1</command>).
172 </para>
173 </note>-->
174
175 <para>Compile <application>Ghostscript</application>:</para>
176
177<screen><userinput>./configure --prefix=/usr \
178 --disable-compile-inits \
179 --enable-dynamic \
180 --with-system-libtiff &amp;&amp;
181make</userinput></screen>
182
183 <note>
184 <para>
185 The shared library depends on <xref linkend="gtk2"/>. It is only used in
186 external programs like <xref linkend="asymptote"/> and
187 <xref linkend="imagemagick"/>.
188 </para>
189 </note>
190
191 <para>
192 To compile the shared library
193 <filename class="libraryfile">libgs.so</filename>, run the following
194 additional command as an unprivileged user:
195 </para>
196
197<screen><userinput>make so</userinput></screen>
198
199 <para>
200 This package does not come with a test suite. A set of example files
201 may be used for testing, but it is only possible after installation
202 of the package.
203 </para>
204
205 <para>
206 Now, as the <systemitem class="username">root</systemitem> user:
207 </para>
208
209<screen role="root"><userinput>make install</userinput></screen>
210
211 <para>If you want the shared library too:</para>
212
213<screen role="root"><userinput>make soinstall<!-- &amp;&amp;
214install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
215ln -v -s ghostscript /usr/include/ps--></userinput></screen>
216
217 <para>Now make the documentation accessible from the normal place:</para>
218
219<screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
220
221 <para>
222 If you have downloaded any fonts, unpack them to
223 <filename class="directory">/usr/share/ghostscript</filename> and ensure
224 the ownerships of the files are
225 <systemitem class="username">root</systemitem>:
226 <systemitem class="groupname">root</systemitem>. Substitute
227 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in the
228 command below for the fonts you wish to install:
229 </para>
230
231<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner &amp;&amp;
232fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
233
234 <para>
235 You can now test the rendering of various postscript and pdf files from the
236 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
237 </filename>, for example (you need an X window system display):
238 </para>
239
240<screen><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
241
242 </sect2>
243
244 <sect2 role="commands">
245 <title>Command Explanations</title>
246
247 <para>
248 <command>sed -i 's/ZLIBDIR=src/ZLIBDIR=$includedir/' ... </command>:
249 Fixes building with system <application>Zlib</application>.
250 </para>
251
252 <!-- <para>
253 <command>rm -rf zlib</command>:
254 <application>zlib</application> was installed as part of LFS.
255 </para> -->
256
257 <para>
258 <parameter>--disable-compile-inits</parameter>: This option makes
259 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
260 </para>
261
262 <para>
263 <parameter>--with-system-libtiff</parameter>: Remove this option if
264 you've not installed <xref linkend="libtiff"/>.
265 </para>
266
267 <!-- <para> Nothing needs these. The ones installed by soinstall are sufficient.
268 <command>install -v -m644 base/*.h... </command>: Some packages
269 (<application>ImageMagick</application> is one) need the
270 <application>Ghostscript</application> interface headers in place to link
271 to the shared library. These commands install the headers.
272 </para>
273
274 <para> Haven't found anything that needs this
275 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
276 expect to find the interface headers in an alternate location.
277 </para> -->
278
279 <para>
280 <command>ln -sfv ../ghostscript-&gs-version;/doc ... </command>: This puts
281 a symbolic link to the documentation where it is expected to be found.
282 </para>
283
284 <para>
285 <option>--disable-cups</option>: this option will save a tiny amount of
286 space by not linking <command>gs</command> and <filename>libgs.so</filename>
287 to the <xref linkend="cups"/> libraries if you have installed those.
288 </para>
289
290 </sect2>
291
292 <sect2 role="content">
293 <title>Contents</title>
294 <segmentedlist>
295 <segtitle>Installed Programs</segtitle>
296 <segtitle>Installed Library</segtitle>
297 <segtitle>Installed Directories</segtitle>
298
299 <seglistitem>
300 <seg>
301 dvipdf, eps2eps, font2c, gs, gsbj, gsc (from soinstall), gsdj,
302 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
303 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
304 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
305 ps2ps, ps2ps2, unix-lpr.sh, and wftopfa
306 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
307 have any bdf tools from xorg ] but they are still referenced in
308 base/unixinst.mak -->
309 </seg>
310 <seg>libgs.so and
311 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
312 <seg>
313 /usr/include/ghostscript,
314 /usr/lib/ghostscript,
315 /usr/share/ghostscript, and
316 /usr/share/doc/ghostscript-&gs-version;
317 </seg>
318 </seglistitem>
319 </segmentedlist>
320
321 <variablelist>
322 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
323 <?dbfo list-presentation="list"?>
324 <?dbhtml list-presentation="table"?>
325
326 <varlistentry id="gplgs-prog">
327 <term><command>gs</command></term>
328 <listitem>
329 <para>
330 is an interpreter for Adobe Systems' PostScript(tm) and Portable
331 Document Format (PDF).
332 </para>
333 <indexterm zone="gs gplgs-prog">
334 <primary sortas="b-gs">gs</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="libgs.so">
340 <term><filename class="libraryfile">libgs.so</filename></term>
341 <listitem>
342 <para>
343 provides <application>Ghostscript</application> functionality to
344 other programs, such as <application>GSView</application>,
345 <application>ImageMagick</application>, and
346 <application>libspectre</application>.
347 </para>
348 <indexterm zone="gs libgs.so">
349 <primary sortas="c-libgs.so">libgs.so</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353 </variablelist>
354
355 <para>
356 <application>GPL Ghostscript</application> provides many different
357 scripts used to convert PostScript, PDF, and other formats. Please refer to
358 the HTML documentation or the man pages for information about the
359 capabilities provided.
360 </para>
361 </sect2>
362</sect1>
Note: See TracBrowser for help on using the repository browser.