source: pst/printing/gs.xml@ ee5e397

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.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 ee5e397 was ee5e397, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to ghostscript-9.50.
Update to qpdf-9.0.2.
Update to aspell-0.60.8.
Update to balsa-2.5.8.
Update to opencv-4.1.2.

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

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