source: pst/printing/gs.xml@ cdb1b4b

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 cdb1b4b was 95b8c6d, checked in by Andrew Benton <andy@…>, 13 years ago

small cleanups

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