source: pst/printing/gs.xml@ 8df3cdc8

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8df3cdc8 was 8df3cdc8, checked in by Pierre Labastie <pieere@…>, 3 years ago

Ghostscript: move a misplaced comment start

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24427 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.2 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 <!-- When updating, ensure gs9xx is updated in url -->
8
9 <!ENTITY gs-download-http
10 "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs&gs-packver;/ghostscript-&gs-version;.tar.xz">
11 <!ENTITY gs-download-ftp " ">
12 <!ENTITY gs-md5sum "72535d31018129a1a8ff636a47ba1f92">
13 <!ENTITY gs-size "53 MB">
14 <!ENTITY gs-buildsize "342 MB (with fonts and libgs.so)">
15 <!ENTITY gs-time "1.8 SBU (Using parallelism=4; with libgs.so)">
16
17 <!ENTITY gs-standard-fonts-download
18 "&sourceforge-dl;/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-dl;/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-Ghostscript">Ghostscript</primary>
40 </indexterm>
41
42 <sect2 role="package">
43 <title>Introduction to Ghostscript</title>
44
45 <para>
46 <application>Ghostscript</application> is a versatile processor
47 for PostScript data with the ability to render PostScript to different
48 targets. It is a mandatory part of the cups printing stack.
49 </para>
50
51 &lfs101_checked;
52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
56 <para>
57 Download (HTTP): <ulink url="&gs-download-http;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download (FTP): <ulink url="&gs-download-ftp;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &gs-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &gs-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &gs-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &gs-time;
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
88<!-- Commenting this out since it's no longer needed, but keeping it for the
89 inevitable next time that we need a patch for this package.
90 <itemizedlist spacing="compact">
91 <listitem>
92 <para>
93 Required patch:
94 <ulink url="&patch-root;/ghostscript-&gs-version;-freetype_fix-1.patch"/>
95 </para>
96 </listitem>
97 </itemizedlist>
98 -->
99
100 <para>
101 If you wish, you can download additional fonts.
102 </para>
103
104 <itemizedlist spacing="compact">
105 <title>Standard Fonts</title>
106 <listitem>
107 <para>
108 Download (HTTP): <ulink url="&gs-standard-fonts-download;"/>
109 </para>
110 </listitem>
111 <listitem>
112 <para>
113 Download MD5 sum: &gs-standard-fonts-md5sum;
114 </para>
115 </listitem>
116 <listitem>
117 <para>
118 Download size: &gs-standard-fonts-size;
119 </para>
120 </listitem>
121 </itemizedlist>
122
123 <itemizedlist spacing="compact">
124 <title>Other Fonts</title>
125 <listitem>
126 <para>
127 Download (HTTP): <ulink url="&gs-other-fonts-download;"/>
128 </para>
129 </listitem>
130 <listitem>
131 <para>
132 Download MD5 sum: &gs-other-fonts-md5sum;
133 </para>
134 </listitem>
135 <listitem>
136 <para>
137 Download size: &gs-other-fonts-size;
138 </para>
139 </listitem>
140 </itemizedlist>
141
142 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
143
144 <bridgehead renderas="sect4">Recommended</bridgehead>
145 <para role="recommended">
146 <xref linkend="cups"/> (required for building the <quote>cups</quote>
147 device backend, which is needed by
148 <application>cups-filters</application>),
149 <xref linkend="fontconfig"/> (required, if you are installing any
150 suggested font),
151 <xref linkend="freetype2"/>,
152 <xref linkend="libjpeg"/>,
153 <xref linkend="libpng"/>,
154 <xref linkend="libtiff"/>, and
155 <xref linkend="openjpeg2"/>
156 </para>
157
158 <bridgehead renderas="sect4">Optional</bridgehead>
159 <para role="optional">
160 <xref linkend="cairo"/>,
161 <xref linkend="gtk3"/>,
162 <xref linkend="libidn"/>,
163 <xref linkend="libpaper"/>, and
164 <xref linkend="x-window-system"/>
165 </para>
166
167 <para condition="html" role="usernotes">
168 User Notes: <ulink url="&blfs-wiki;/gs"/>
169 </para>
170 </sect2>
171
172 <sect2 role="installation">
173 <title>Installation of Ghostscript</title>
174
175 <note>
176 <para>
177 The <application>Ghostscript</application> build system is not
178 user-friendly. In order to use system copies of various graphics
179 libraries, you must do it using unconventional methods.
180 </para>
181 </note>
182
183 <para>
184 <application>Ghostscript</application> includes (old) copies of
185 several libraries. Some of these seem to have been patched to fix known
186 vulnerabilities, but others of these copies are less-well maintained.
187 To ensure that any future fixes are applied throughout the whole system,
188 it is recommended that you first install the released versions of these
189 libraries and then configure <application>Ghostscript</application>
190 to link to them.
191 </para>
192
193 <para>
194 If you have installed the recommended dependencies on your system,
195 remove the copies of
196 <application>freetype</application>, <application>lcms2</application>,
197 <application>libjpeg</application>, <application>libpng</application>,
198 and <application>openjpeg</application>:
199 </para>
200
201<screen><userinput>rm -rf freetype lcms2mt jpeg libpng openjpeg</userinput></screen>
202
203<!--
204 <para>
205 Apply a patch to fix a problem introduced by changes in freetype-2.10.3:
206 </para>
207
208<screen><userinput remap="pre">patch -Np1 -i ../ghostscript-&gs-version;-freetype_fix-1.patch</userinput></screen>
209-->
210
211 <para>
212 Compile <application>Ghostscript</application>:
213 </para>
214
215<screen><userinput>rm -rf zlib &amp;&amp;
216
217./configure --prefix=/usr \
218 --disable-compile-inits \
219 --enable-dynamic \
220 --with-system-libtiff &amp;&amp;
221make</userinput></screen>
222
223 <note>
224 <para>
225 The shared library depends on <xref linkend="gtk3"/>. It is only used by
226 external programs like <xref linkend="asymptote"/>, <xref
227 linkend="dvisvgm"/>, <xref linkend="imagemagick"/>, and <xref
228 linkend="texlive"/>.
229 </para>
230 </note>
231
232 <para>
233 To compile the shared library
234 <filename class="libraryfile">libgs.so</filename>, run the following
235 additional command as an unprivileged user:
236 </para>
237
238<screen><userinput>make so</userinput></screen>
239
240 <para>
241 This package does not come with a test suite. A set of example files
242 may be used for testing, but it is only possible after installation
243 of the package.
244 </para>
245
246 <para>
247 Now, as the <systemitem class="username">root</systemitem> user:
248 </para>
249
250<screen role="root"><userinput>make install</userinput></screen>
251
252 <para>
253 If you want the shared library too:
254 </para>
255
256<screen role="root"><userinput>make soinstall &amp;&amp;
257install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
258ln -sfvn ghostscript /usr/include/ps</userinput></screen>
259
260 <para>
261 Now make the documentation accessible from a standard place:
262 </para>
263<!-- Starting with 9.23, the install does not seem to copy the examples any more -->
264
265<screen role="root"><userinput>mv -v /usr/share/doc/ghostscript/&gs-version; /usr/share/doc/ghostscript-&gs-version; &amp;&amp;
266rm -rfv /usr/share/doc/ghostscript &amp;&amp;
267cp -r examples/ /usr/share/ghostscript/&gs-version;/</userinput></screen>
268
269 <para>
270 If you have downloaded the fonts, unpack them to
271 <filename class="directory">/usr/share/ghostscript</filename> and ensure
272 the ownership of the files are
273 <systemitem class="username">root</systemitem>:
274 <systemitem class="groupname">root</systemitem>.
275 </para>
276
277<screen role="root"><userinput>tar -xvf ../ghostscript-fonts-std-8.11.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
278tar -xvf ../gnu-gs-fonts-other-6.0.tar.gz -C /usr/share/ghostscript --no-same-owner &amp;&amp;
279fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
280
281 <para>
282 You can now test the rendering of various postscript and pdf files from the
283 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
284 </filename>. To do this, run the following command (in a X Windows display):
285 </para>
286
287<screen remap="test"><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
288
289 </sect2>
290
291 <sect2 role="commands">
292 <title>Command Explanations</title>
293
294 <para>
295 <command>rm -rf zlib </command>: <application>zlib</application>
296 was installed as part of LFS.
297 </para>
298
299 <para>
300 <parameter>--disable-compile-inits</parameter>: This option makes
301 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
302 </para>
303
304 <para>
305 <parameter>--with-system-libtiff</parameter>: Remove this option if
306 you've not installed <xref linkend="libtiff"/>.
307 </para>
308
309 <para>
310 <command>install -v -m644 base/*.h... </command>: Some packages
311 (<application>ImageMagick</application> is one) need the
312 <application>Ghostscript</application> interface headers in place to link
313 to the shared library. These commands install the headers.
314 </para>
315
316 <para>
317 <command>ln -sfvn ghostscript /usr/include/ps</command>: Some packages
318 expect to find the interface headers in an alternate location.
319 </para>
320
321 <para>
322 <command>mv -v /usr/share/doc/ghostscript/&gs-version;
323 /usr/share/doc/ghostscript-&gs-version;</command>: This moves the
324 documentation where it is expected to be found.
325 </para>
326
327 <para>
328 <option>--disable-cups</option>: this option will save a tiny amount of
329 space by not linking <command>gs</command> and <filename>libgs.so</filename>
330 to the <xref linkend="cups"/> libraries if you have installed those.
331 </para>
332 </sect2>
333
334 <sect2 role="content">
335 <title>Contents</title>
336 <segmentedlist>
337 <segtitle>Installed Programs</segtitle>
338 <segtitle>Installed Library</segtitle>
339 <segtitle>Installed Directories</segtitle>
340
341 <seglistitem>
342 <seg>
343 dvipdf, eps2eps, gs, gsbj, gsc (from soinstall), gsdj,
344 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
345 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
346 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
347 ps2ps, ps2ps2, and unix-lpr.sh
348 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
349 have any bdf tools from xorg ] but they are still referenced in
350 base/unixinst.mak -->
351 </seg>
352 <seg>libgs.so and
353 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
354 <seg>
355 /usr/include/ghostscript,
356 /usr/lib/ghostscript,
357 /usr/share/ghostscript, and
358 /usr/share/doc/ghostscript-&gs-version;
359 </seg>
360 </seglistitem>
361 </segmentedlist>
362
363 <variablelist>
364 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
365 <?dbfo list-presentation="list"?>
366 <?dbhtml list-presentation="table"?>
367
368 <varlistentry id="gplgs-prog">
369 <term><command>gs</command></term>
370 <listitem>
371 <para>
372 is an interpreter for Adobe Systems' PostScript(tm) and Portable
373 Document Format (PDF)
374 </para>
375 <indexterm zone="gs gplgs-prog">
376 <primary sortas="b-gs">gs</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="libgs.so">
382 <term><filename class="libraryfile">libgs.so</filename></term>
383 <listitem>
384 <para>
385 provides <application>Ghostscript</application> functionality to
386 other programs, such as <application>GSView</application>,
387 <application>ImageMagick</application>, and
388 <application>libspectre</application>
389 </para>
390 <indexterm zone="gs libgs.so">
391 <primary sortas="c-libgs.so">libgs.so</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395 </variablelist>
396
397 <para>
398 <application>Ghostscript</application> provides many different
399 scripts used to convert PostScript, PDF, and other formats. Please refer to
400 the HTML documentation or the man pages for information about the
401 capabilities provided.
402 </para>
403 </sect2>
404
405</sect1>
Note: See TracBrowser for help on using the repository browser.