source: pst/printing/gs.xml@ 019052a1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 019052a1 was 019052a1, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Update to ghostscript-9.07
Update to docbook-xsl-1.78.1

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

  • Property mode set to 100644
File size: 12.5 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 "http://downloads.ghostscript.com/public/ghostscript-&gs-version;.tar.bz2">
9 <!ENTITY gs-download-ftp " ">
10 <!ENTITY gs-md5sum "eea27befc1e85bef6d4768202f6b03a5">
11 <!ENTITY gs-size "27 MB">
12 <!ENTITY gs-buildsize
13 "215 MB (includes installing libgs.so and both font tarballs)">
14 <!ENTITY gs-time
15 "3.3 SBU (includes building and installing libgs.so)">
16
17 <!ENTITY gs-standard-fonts-download
18 "&sourceforge-repo;/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-repo;/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-GPL-Ghostscript">GPL 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.</para>
48
49 &lfs73_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 <itemizedlist spacing="compact">
76 <title>Standard Fonts</title>
77 <listitem>
78 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
79 </listitem>
80 <listitem>
81 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
82 </listitem>
83 <listitem>
84 <para>Download size: &gs-standard-fonts-size;</para>
85 </listitem>
86 </itemizedlist>
87
88 <itemizedlist spacing="compact">
89 <title>Other Fonts</title>
90 <listitem>
91 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
92 </listitem>
93 <listitem>
94 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
95 </listitem>
96 <listitem>
97 <para>Download size: &gs-other-fonts-size;</para>
98 </listitem>
99 </itemizedlist>
100
101 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <para role="recommended">
105 <xref linkend="expat"/>,
106 <xref linkend="freetype2"/>,
107 <xref linkend="libjpeg"/>,
108 <xref linkend="libpng"/>, and
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="fontconfig"/>,
117 <xref linkend="gtk2"/>,
118 <xref linkend="cups"/>,
119 <xref linkend="jasper"/>,
120 <xref linkend="lcms"/>,
121 <xref linkend="libidn"/>,
122 <xref linkend="x-window-system"/> and
123 <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
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 these dependencies on your system, remove the
154 copies of <application>expat</application>,
155 <application>freetype</application>, <!--<application>lcms2</application>, -->
156 <application>libjpeg</application>, <application>libpng</application>,
157 and <application>libtiff</application>:
158 </para>
159
160 <note><para>Little CMS-2.5 will not work with this version of
161 <application>GPL Ghostscript</application>. Use the embedded version
162 for now.
163 </para></note>
164
165
166<screen><userinput>rm -rf expat freetype jpeg libpng tiff</userinput></screen>
167
168 <note>
169 <para>
170 If you have a multicore computer and try to run make with multiple
171 jobs (eg, make -j4) then the build may fail due to race conditions in
172 the <application>Ghostscript</application> build system. You can work
173 around that problem by simply running make again (eg,
174 <command>make -j4 || make -j1</command>).
175 </para>
176 </note>
177
178 <note>
179 <para>
180 If you have installed Cups and your printer is <emphasis>not</emphasis>
181 a postscript printer you will need to add
182 <option>--with-install-cups</option> to the configure options below.
183 (This option makes Ghostscript compile and install the gstoraster filter
184 and the gstoraster.convs configuration file that allow Cups to convert a
185 PostScript file to raster.)
186 </para>
187 </note>
188
189 <para>Compile <application>Ghostscript</application>:</para>
190
191<screen><userinput>rm -rf jasper lcms zlib &amp;&amp;
192./configure --prefix=/usr --enable-dynamic --with-system-libtiff LIBS=-lz &amp;&amp;
193make</userinput></screen>
194
195 <note>
196 <para>
197 The shared library depends on <xref linkend="gtk2"/>. It is only used in
198 external programs like <xref linkend="imagemagick"/>.
199 </para>
200 </note>
201
202 <para>
203 To compile the shared library
204 <filename class="libraryfile">libgs.so</filename>, run the following
205 additional command as an unprivileged user:
206 </para>
207
208<screen><userinput>make so</userinput></screen>
209
210 <para>
211 This package does not come with a test suite. However, you may test the
212 operation of the newly built <command>gs</command> program by issuing the
213 following command (issue from an X Windows terminal):
214 </para>
215
216<screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
217
218 <para>
219 Now, as the <systemitem class="username">root</systemitem> user:
220 </para>
221
222<screen role="root"><userinput>make install</userinput></screen>
223
224 <para>If you want the shared library too:</para>
225
226<screen role="root"><userinput>make soinstall &amp;&amp;
227install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
228ln -v -s ghostscript /usr/include/ps</userinput></screen>
229
230 <para>Now install the documentation:</para>
231
232<screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
233
234 <para>
235 To finish the installation, unpack all fonts you've downloaded to
236 <filename class="directory">/usr/share/ghostscript</filename> and ensure
237 the ownerships of the files are
238 <systemitem class="username">root</systemitem>:
239 <systemitem class="groupname">root</systemitem>. Substitute
240 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in the
241 command below for the fonts you wish to install:
242 </para>
243
244<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
245 </sect2>
246
247 <sect2 role="commands">
248 <title>Command Explanations</title>
249
250 <para>
251 <command>rm -rf jasper lcms zlib</command>: The
252 <application>Ghostscript</application> build system defaults to using its
253 own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
254 JPEG 2000 files <!-- I can't get it to compile using a system installed
255 version of openjpeg. It seems the ghostscript version has been heavily
256 modified... --> so jasper source can be removed. The default color
257 management system is now <application>lcms2</application> so the
258 <application>lcms</application> source is not needed.
259 <application>Zlib</application> was installed as part of LFS.
260 </para>
261
262 <para>
263 <option>--with-system-libtiff</option>: Remove this option if you've not
264 installed <xref linkend="libtiff"/>.
265 </para>
266
267 <para>
268 <parameter>LIBS=-lz</parameter>: Use the <envar>LIBS</envar> variable to
269 tell the linker (ld) to link against the system installed
270 <application>zlib</application>.
271 </para>
272
273 <para>
274 <command>install -v -m644 base/*.h...</command>: Some packages
275 (<application>ImageMagick</application> is one) need the
276 <application>Ghostscript</application> interface headers in place to link
277 to the shared library. These commands install the headers.
278 </para>
279
280 <para>
281 <command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
282 expect to find the interface headers in an alternate location.
283 </para>
284
285 <para>
286 <command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>: This puts
287 a symbolic link to the documentation where it is expected to be found.
288 </para>
289 </sect2>
290
291 <sect2 role="content">
292 <title>Contents</title>
293 <segmentedlist>
294 <segtitle>Installed Programs</segtitle>
295 <segtitle>Installed Library</segtitle>
296 <segtitle>Installed Directories</segtitle>
297
298 <seglistitem>
299 <seg>
300 bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
301 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
302 (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
303 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
304 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
305 wftopfa
306 </seg>
307 <seg>libgs.so</seg>
308 <seg>
309 /usr/include/ghostscript,
310 /usr/lib/ghostscript,
311 /usr/share/ghostscript, and
312 /usr/share/doc/ghostscript-&gs-version;
313 </seg>
314 </seglistitem>
315 </segmentedlist>
316
317 <variablelist>
318 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
319 <?dbfo list-presentation="list"?>
320 <?dbhtml list-presentation="table"?>
321
322 <varlistentry id="gplgs-prog">
323 <term><command>gs</command></term>
324 <listitem>
325 <para>
326 is an interpreter for Adobe Systems' PostScript(tm) and Portable
327 Document Format (PDF).
328 </para>
329 <indexterm zone="gs gplgs-prog">
330 <primary sortas="b-gs">gs</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="libgs.so">
336 <term><filename class="libraryfile">libgs.so</filename></term>
337 <listitem>
338 <para>
339 provides <application>Ghostscript</application> functionality to
340 other programs, such as <application>GSView</application>,
341 <application>ImageMagick</application>, and
342 <application>libspectre</application>.
343 </para>
344 <indexterm zone="gs libgs.so">
345 <primary sortas="c-libgs.so">libgs.so</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349 </variablelist>
350
351 <para>
352 <application>GPL Ghostscript</application> provides many different
353 scripts used to convert PostScript, PDF, and other formats. Please refer to
354 the HTML documentation or the man pages for information about the
355 capabilities provided.
356 </para>
357 </sect2>
358</sect1>
Note: See TracBrowser for help on using the repository browser.