source: pst/printing/gs.xml@ e54771c

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

Update to ImageMagick-7.0.1-1.
Fix/Mark several packages for gcc6.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17325 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/gs919/ghostscript-&gs-version;.tar.gz">
9 <!ENTITY gs-download-ftp " ">
10 <!ENTITY gs-md5sum "c9682ce6b852f9197c69905a43928907">
11 <!ENTITY gs-size "32 MB">
12 <!ENTITY gs-buildsize "156 MB (with fonts and libgs.so)">
13 <!ENTITY gs-time "2.6 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 &lfs79_checked;
49 &gcc6_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
75 <para>If you wish, you can download additional fonts.</para>
76
77 <itemizedlist spacing="compact">
78 <title>Standard Fonts</title>
79 <listitem>
80 <para>Download (HTTP): <ulink url="&gs-standard-fonts-download;"/></para>
81 </listitem>
82 <listitem>
83 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
84 </listitem>
85 <listitem>
86 <para>Download size: &gs-standard-fonts-size;</para>
87 </listitem>
88 </itemizedlist>
89
90 <itemizedlist spacing="compact">
91 <title>Other Fonts</title>
92 <listitem>
93 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
94 </listitem>
95 <listitem>
96 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
97 </listitem>
98 <listitem>
99 <para>Download size: &gs-other-fonts-size;</para>
100 </listitem>
101 </itemizedlist>
102
103 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
104
105 <bridgehead renderas="sect4">Recommended</bridgehead>
106 <para role="recommended">
107 <xref linkend="freetype2"/>,
108 <xref linkend="libjpeg"/>,
109 <xref linkend="libpng"/>,
110 <xref linkend="libtiff"/>, and
111 <xref linkend="lcms2"/>
112 </para>
113
114 <bridgehead renderas="sect4">Optional</bridgehead>
115 <para role="optional">
116 <xref linkend="cairo"/>,
117 <xref linkend="cups"/>,
118 <xref linkend="fontconfig"/> (required, if you are installing any
119 suggested font),
120 <xref linkend="gtk2"/>,
121 <xref linkend="libidn"/>,
122 <xref linkend="libpaper"/>,
123 <xref linkend="lcms"/> (not used by default, nor if lcms2 is present or found), 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>GPL 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>GPL 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>, and <application>libpng</application>:
158 </para>
159
160<screen><userinput>rm -rf freetype lcms2 jpeg libpng</userinput></screen>
161
162 <para>Compile <application>Ghostscript</application>:</para>
163
164<screen><userinput>rm -rf zlib &amp;&amp;
165
166./configure --prefix=/usr \
167 --disable-compile-inits \
168 --enable-dynamic \
169 --with-system-libtiff &amp;&amp;
170make</userinput></screen>
171
172 <note>
173 <para>
174 The shared library depends on <xref linkend="gtk2"/>. It is only used in
175 external programs like <xref linkend="asymptote"/> and
176 <xref linkend="imagemagick"/>.
177 </para>
178 </note>
179
180 <para>
181 To compile the shared library
182 <filename class="libraryfile">libgs.so</filename>, run the following
183 additional command as an unprivileged user:
184 </para>
185
186<screen><userinput>make so</userinput></screen>
187
188 <para>
189 This package does not come with a test suite. A set of example files
190 may be used for testing, but it is only possible after installation
191 of the package.
192 </para>
193
194 <para>
195 Now, as the <systemitem class="username">root</systemitem> user:
196 </para>
197
198<screen role="root"><userinput>make install</userinput></screen>
199
200 <para>If you want the shared library too:</para>
201
202<screen role="root"><userinput>make soinstall &amp;&amp;
203install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
204ln -v -s ghostscript /usr/include/ps</userinput></screen>
205
206 <para>Now make the documentation accessible from the normal place:</para>
207
208<screen role="root"><userinput>ln -sfvn ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
209
210 <para>
211 If you have downloaded any fonts, unpack them to
212 <filename class="directory">/usr/share/ghostscript</filename> and ensure
213 the ownerships of the files are
214 <systemitem class="username">root</systemitem>:
215 <systemitem class="groupname">root</systemitem>. Substitute
216 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in the
217 command below for the fonts you wish to install:
218 </para>
219
220<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner &amp;&amp;
221fc-cache -v /usr/share/ghostscript/fonts/</userinput></screen>
222
223 <para>
224 You can now test the rendering of various postscript and pdf files from the
225 <filename class="directory">/usr/share/ghostscript/&gs-version;/examples
226 </filename>, for example (you need an X window system display):
227 </para>
228
229<screen><userinput>gs -q -dBATCH /usr/share/ghostscript/&gs-version;/examples/tiger.eps</userinput></screen>
230
231 </sect2>
232
233 <sect2 role="commands">
234 <title>Command Explanations</title>
235
236 <para>
237 <command>rm -rf zlib </command>: <application>zlib</application>
238 was installed as part of LFS.
239 </para>
240
241 <para>
242 <parameter>--disable-compile-inits</parameter>: This option makes
243 <command>gs</command> and <filename>libgs.so</filename> slightly smaller.
244 </para>
245
246 <para>
247 <parameter>--with-system-libtiff</parameter>: Remove this option if
248 you've not installed <xref linkend="libtiff"/>.
249 </para>
250
251 <para>
252 <command>install -v -m644 base/*.h... </command>: Some packages
253 (<application>ImageMagick</application> is one) need the
254 <application>Ghostscript</application> interface headers in place to link
255 to the shared library. These commands install the headers.
256 </para>
257
258 <para>
259 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
260 expect to find the interface headers in an alternate location.
261 </para>
262
263 <para>
264 <command>ln -sfv ../ghostscript-&gs-version;/doc ... </command>: This puts
265 a symbolic link to the documentation where it is expected to be found.
266 </para>
267
268 <para>
269 <option>--disable-cups</option>: this option will save a tiny amount of
270 space by not linking <command>gs</command> and <filename>libgs.so</filename>
271 to the <xref linkend="cups"/> libraries if you have installed those.
272 </para>
273 </sect2>
274
275 <sect2 role="content">
276 <title>Contents</title>
277 <segmentedlist>
278 <segtitle>Installed Programs</segtitle>
279 <segtitle>Installed Library</segtitle>
280 <segtitle>Installed Directories</segtitle>
281
282 <seglistitem>
283 <seg>
284 dvipdf, eps2eps, font2c, gs, gsbj, gsc (from soinstall), gsdj,
285 gsdj500, gslj, gslp, gsnd, gsx (from soinstall), lprsetup.sh,
286 pdf2dsc, pdf2ps, pf2afm, pfbtopfa, pphs, printafm, ps2ascii,
287 ps2epsi, ps2pdf, ps2pdf12, ps2pdf13, ps2pdf14, ps2pdfwr,
288 ps2ps, ps2ps2, unix-lpr.sh, and wftopfa
289 <!-- I don't see bdftops,fixmswrd.pl or pv.sh on my builds [ I don't
290 have any bdf tools from xorg ] but they are still referenced in
291 base/unixinst.mak -->
292 </seg>
293 <seg>libgs.so and
294 /usr/lib/ghostscript/&gs-version;/X11.so</seg>
295 <seg>
296 /usr/include/ghostscript,
297 /usr/lib/ghostscript,
298 /usr/share/ghostscript, and
299 /usr/share/doc/ghostscript-&gs-version;
300 </seg>
301 </seglistitem>
302 </segmentedlist>
303
304 <variablelist>
305 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
306 <?dbfo list-presentation="list"?>
307 <?dbhtml list-presentation="table"?>
308
309 <varlistentry id="gplgs-prog">
310 <term><command>gs</command></term>
311 <listitem>
312 <para>
313 is an interpreter for Adobe Systems' PostScript(tm) and Portable
314 Document Format (PDF).
315 </para>
316 <indexterm zone="gs gplgs-prog">
317 <primary sortas="b-gs">gs</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="libgs.so">
323 <term><filename class="libraryfile">libgs.so</filename></term>
324 <listitem>
325 <para>
326 provides <application>Ghostscript</application> functionality to
327 other programs, such as <application>GSView</application>,
328 <application>ImageMagick</application>, and
329 <application>libspectre</application>.
330 </para>
331 <indexterm zone="gs libgs.so">
332 <primary sortas="c-libgs.so">libgs.so</primary>
333 </indexterm>
334 </listitem>
335 </varlistentry>
336 </variablelist>
337
338 <para>
339 <application>GPL Ghostscript</application> provides many different
340 scripts used to convert PostScript, PDF, and other formats. Please refer to
341 the HTML documentation or the man pages for information about the
342 capabilities provided.
343 </para>
344 </sect2>
345</sect1>
Note: See TracBrowser for help on using the repository browser.