source: pst/printing/gs.xml@ 6b58d592

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6b58d592 was 6b58d592, checked in by Andrew Benton <andy@…>, 13 years ago

ghostscript-9.05

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

  • Property mode set to 100644
File size: 11.8 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 "8bcef1f33ddf8a4d12b2cf8da385c191">
11 <!ENTITY gs-size "27 MB">
12 <!ENTITY gs-buildsize "252 MB (includes installing libgs.so and both font tarballs)">
13 <!ENTITY gs-time "2.5 SBU (includes building and installing libgs.so)">
14
15 <!ENTITY gs-standard-fonts-download "&sourceforge-repo;/gs-fonts/ghostscript-fonts-std-8.11.tar.gz">
16 <!ENTITY gs-standard-fonts-md5sum "6865682b095f8c4500c54b285ff05ef6">
17 <!ENTITY gs-standard-fonts-size "3.7 MB">
18
19 <!ENTITY gs-other-fonts-download "&sourceforge-repo;/gs-fonts/gnu-gs-fonts-other-6.0.tar.gz">
20 <!ENTITY gs-other-fonts-md5sum "33457d3f37de7ef03d2eea05a9e6aa4f">
21 <!ENTITY gs-other-fonts-size "796 KB">
22]>
23
24<sect1 id="gs" xreflabel="GPL Ghostscript-&gs-version;">
25 <?dbhtml filename="gs.html"?>
26
27 <sect1info>
28 <othername>$LastChangedBy$</othername>
29 <date>$Date$</date>
30 </sect1info>
31
32 <title>GPL Ghostscript-&gs-version;</title>
33
34 <indexterm zone="gs">
35 <primary sortas="a-GPL-Ghostscript">GPL Ghostscript</primary>
36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to Ghostscript</title>
40
41 <para><application>Ghostscript</application> is a versatile processor
42 for PostScript data with the ability to render PostScript to different
43 targets.</para>
44
45 &lfs70_checked;
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>Download (HTTP): <ulink url="&gs-download-http;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download (FTP): <ulink url="&gs-download-ftp;"/></para>
54 </listitem>
55 <listitem>
56 <para>Download MD5 sum: &gs-md5sum;</para>
57 </listitem>
58 <listitem>
59 <para>Download size: &gs-size;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated disk space required: &gs-buildsize;</para>
63 </listitem>
64 <listitem>
65 <para>Estimated build time: &gs-time;</para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
70
71 <itemizedlist spacing="compact">
72 <title>Standard Fonts</title>
73 <listitem>
74 <para>Download (FTP): <ulink url="&gs-standard-fonts-download;"/></para>
75 </listitem>
76 <listitem>
77 <para>Download MD5 sum: &gs-standard-fonts-md5sum;</para>
78 </listitem>
79 <listitem>
80 <para>Download size: &gs-standard-fonts-size;</para>
81 </listitem>
82 </itemizedlist>
83
84 <itemizedlist spacing="compact">
85 <title>Other Fonts</title>
86 <listitem>
87 <para>Download (HTTP): <ulink url="&gs-other-fonts-download;"/></para>
88 </listitem>
89 <listitem>
90 <para>Download MD5 sum: &gs-other-fonts-md5sum;</para>
91 </listitem>
92 <listitem>
93 <para>Download size: &gs-other-fonts-size;</para>
94 </listitem>
95 </itemizedlist>
96
97 <bridgehead renderas="sect3">Ghostscript Dependencies</bridgehead>
98
99 <bridgehead renderas="sect4">Recommended</bridgehead>
100 <para role="optional"><xref linkend="expat"/>,
101 <xref linkend="freetype2"/>,
102 <xref linkend="libjpeg"/>,
103 <xref linkend="libpng"/>,
104 <xref linkend="libtiff"/>, and
105 <xref linkend="lcms2"/>.</para>
106
107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional"><xref linkend="cairo"/>,
109 <xref linkend="fontconfig"/>,
110 <xref linkend="gtk2"/>,
111 <xref linkend="cups"/>,
112 <xref linkend="jasper"/>,
113 <xref linkend="lcms"/>,
114 <xref linkend="libidn"/>,
115 <xref linkend="x-window-system"/>, and <ulink
116 url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>.</para>
117
118 <para condition="html" role="usernotes">User Notes:
119 <ulink url="&blfs-wiki;/gs"/></para>
120
121 </sect2>
122
123 <sect2 role="installation">
124 <title>Installation of Ghostscript</title>
125
126 <para>Install <application>GPL Ghostscript</application> by running the
127 following commands:</para>
128
129 <note>
130 <para>The <application>Ghostscript</application> build system is not
131 user-friendly. In order to use system copies of various graphics
132 libraries, you must do it using unconventional methods.</para>
133 </note>
134
135 <para><application>GPL Ghostscript</application> includes (old) copies of
136 several libraries. Some of these seem to have been patched to fix known
137 vulnerabilities, but others of these copies are less-well maintained.
138 To ensure that any future fixes are applied throughout the whole system,
139 it is recommended that you install the released versions of these
140 libraries and then configure <application>GPL Ghostscript</application>
141 to link to them.</para>
142
143 <para>If you have installed these dependencies on your system, remove the
144 copies of <application>expat</application>,
145 <application>freetype</application>, <application>lcms2</application>,
146 <application>libjpeg</application>, <application>libpng</application>,
147 and <application>libtiff</application>:
148 </para>
149
150<screen><userinput>rm -rf expat freetype jpeg lcms2 libpng tiff</userinput></screen>
151
152 <note>
153 <para>If you have a multicore computer and try to run make with multiple
154 jobs (eg, make -j4) then the build may fail due to race conditions in the
155 <application>Ghostscript</application> build system.</para>
156 </note>
157
158 <para>Compile <application>Ghostscript</application>:</para>
159
160<screen><userinput>rm -rf jasper lcms zlib &amp;&amp;
161./configure --prefix=/usr --enable-dynamic --with-system-libtiff &amp;&amp;
162sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile &amp;&amp;
163make</userinput></screen>
164
165 <note>
166 <para>The shared library depends on <xref linkend="gtk2"/>. It is
167 only used in external programs like <xref linkend="imagemagick"/>.</para>
168 </note>
169
170 <para>To compile the shared library
171 <filename class="libraryfile">libgs.so</filename>, run the
172 following additional command as an unprivileged user:</para>
173
174<screen><userinput>make so</userinput></screen>
175
176 <para>This package does not come with a test suite. However, you may test
177 the operation of the newly built <command>gs</command> program by
178 issuing the following command (issue from an X Windows terminal):</para>
179
180<screen><userinput>bin/gs -Ilib -dBATCH examples/tiger.eps</userinput></screen>
181
182 <para>Now, as the <systemitem class="username">root</systemitem>
183 user:</para>
184
185<screen role="root"><userinput>make install</userinput></screen>
186
187 <para>If you want the shared library too:</para>
188
189<screen role="root"><userinput>make soinstall &amp;&amp;
190install -v -m644 base/*.h /usr/include/ghostscript &amp;&amp;
191ln -v -s ghostscript /usr/include/ps</userinput></screen>
192
193 <para>Now install the documentation:</para>
194
195<screen role="root"><userinput>ln -sfv ../ghostscript/&gs-version;/doc /usr/share/doc/ghostscript-&gs-version;</userinput></screen>
196
197 <para>To finish the installation, unpack all fonts you've downloaded to
198 <filename class="directory">/usr/share/ghostscript</filename> and ensure
199 the ownerships of the files are
200 <systemitem class="username">root</systemitem>:
201 <systemitem class="groupname">root</systemitem>. Substitute
202 <replaceable>&lt;font-tarball&gt;</replaceable> appropriately in
203 the command below for the fonts you wish to install:</para>
204
205<screen role="root"><userinput>tar -xvf ../<replaceable>&lt;font-tarball&gt;</replaceable> -C /usr/share/ghostscript --no-same-owner</userinput></screen>
206 </sect2>
207
208 <sect2 role="commands">
209 <title>Command Explanations</title>
210
211 <para><command>rm -rf jasper lcms zlib</command>: The
212 <application>Ghostscript</application> build system defaults to using its
213 own version of <ulink url="http://www.openjpeg.org/">OpenJpeg</ulink> for
214 JPEG 2000 files <!-- I can't get it to compile using a system installed
215 version of openjpeg. I'll come back to this, it seems the ghostscript
216 version is quite old --> so we can all remove the jasper source. The
217 default color management system is now <application>lcms2</application> so
218 the <application>lcms</application> source is not needed.
219 <application>Zlib</application> was installed as part of LFS.</para>
220
221 <para><option>--with-system-libtiff</option>: Remove this option if you've
222 not installed <xref linkend="libtiff"/>.</para>
223
224 <para><command>sed -i '/^EXTRALIBS/s# -ldl# -lz#' Makefile</command>:
225 This sed is needed to get it to link against the system installed
226 <application>zlib</application>.</para>
227
228 <para><option>--without-jbig2dec</option>: The <literal>JBIG2</literal>
229 decompression code (used for some faxes) can be disabled by using this
230 switch and removing the <filename class="directory">jbig2dec/</filename>
231 source.</para>
232
233 <para><command>install -v -m644 base/*.h...</command>: Some packages
234 (<application>ImageMagick</application> is one) need the
235 <application>Ghostscript</application> interface headers in place to link
236 to the shared library. These commands install the headers.</para>
237
238 <para><command>ln -v -s ghostscript /usr/include/ps</command>: Some packages
239 expect to find the interface headers in an alternate location.</para>
240
241 <para><command>ln -sfv ../ghostscript-&gs-version;/doc ...</command>:
242 This puts a symbolic link to the documentation where it is expected to be
243 found.</para>
244
245 </sect2>
246
247 <sect2 role="content">
248 <title>Contents</title>
249 <segmentedlist>
250 <segtitle>Installed Programs</segtitle>
251 <segtitle>Installed Library</segtitle>
252 <segtitle>Installed Directories</segtitle>
253
254 <seglistitem>
255 <seg>bdftops, dumphint, dvipdf, eps2eps, fixmswrd.pl, font2c, gs, gsbj,
256 gsc (from soinstall), gsdj, gsdj500, gslj, gslp, gsnd, gsx
257 (from soinstall), lprsetup.sh, pdf2dsc, pdf2ps, pdfopt,
258 pf2afm, pfbtopfa, printafm, ps2ascii, ps2epsi, ps2pdf, ps2pdf12,
259 ps2pdf13, ps2pdf14, ps2pdfwr, ps2ps, ps2ps2, pv.sh, unix-lpr.sh, and
260 wftopfa</seg>
261 <seg>libgs.so</seg>
262 <seg>/usr/include/ghostscript, /usr/lib/ghostscript,
263 /usr/share/ghostscript, and
264 /usr/share/doc/ghostscript-&gs-version;</seg>
265 </seglistitem>
266 </segmentedlist>
267
268 <variablelist>
269 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
270 <?dbfo list-presentation="list"?>
271 <?dbhtml list-presentation="table"?>
272
273 <varlistentry id="gplgs-prog">
274 <term><command>gs</command></term>
275 <listitem>
276 <para>is an interpreter for Adobe Systems' PostScript(tm) and Portable
277 Document Format (PDF).</para>
278 <indexterm zone="gs gplgs-prog">
279 <primary sortas="b-gs">gs</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="libgs.so">
285 <term><filename class="libraryfile">libgs.so</filename></term>
286 <listitem>
287 <para>provides <application>Ghostscript</application> functionality
288 to other programs, such as <application>GSView</application>,
289 <application>ImageMagick</application>, and
290 <application>libspectre</application>.</para>
291 <indexterm zone="gs libgs.so">
292 <primary sortas="c-libgs.so">libgs.so</primary>
293 </indexterm>
294 </listitem>
295 </varlistentry>
296
297 </variablelist>
298
299 <para><application>GPL Ghostscript</application> provides many different
300 scripts used to convert PostScript, PDF, and other formats. Please refer to
301 the HTML documentation or the man pages for information about the
302 capabilities provided.</para>
303
304 </sect2>
305
306</sect1>
Note: See TracBrowser for help on using the repository browser.