source: pst/printing/gs.xml@ f6cbe88

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 f6cbe88 was f7153b6, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to ghostscript-9.20
Update to bluez-5.42

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

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