source: pst/printing/gs.xml@ bb65a3c

10.0 10.1 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 bb65a3c was bb65a3c, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to thunderbird-68.6.0.
Update to git-2.26.0.
Update to glibmm-2.64.2.
Update to ghostscript-9.52.
Update to NetworkManager-1.22.10.
Update to cryptsetup-2.3.1.

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

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